feat(packages/rebuild): move rebuild script to a package
This commit is contained in:
parent
d13962a7d9
commit
c644f53ec7
3 changed files with 18 additions and 11 deletions
|
@ -22,16 +22,6 @@
|
|||
neovim
|
||||
ripgrep
|
||||
fzf
|
||||
(pkgs.writeShellScriptBin "rebuild" # sh
|
||||
''
|
||||
if [ ! -f "flake.nix" ]; then
|
||||
echo "flake.nix not found in current directory. exiting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git add . && \
|
||||
nixos-rebuild switch --flake . --use-remote-sudo && \
|
||||
git commit -a
|
||||
'')
|
||||
pantheon.rebuild
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue