feat(homes/rafiq): add rebuild script
This commit is contained in:
parent
0a325b14c5
commit
8b69346b1f
1 changed files with 11 additions and 0 deletions
|
@ -15,6 +15,17 @@
|
||||||
neovim
|
neovim
|
||||||
ripgrep
|
ripgrep
|
||||||
kitty
|
kitty
|
||||||
|
(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
|
||||||
|
'')
|
||||||
];
|
];
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue