New update script
This commit is contained in:
11
scripts/bupdate
Executable file
11
scripts/bupdate
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ "$UID" -ne 0 ]; then
|
||||||
|
sudo true # Prompt user for password so it doesn't happen in the middle of the script
|
||||||
|
fi
|
||||||
|
pushd ~/.dotfiles
|
||||||
|
sudo nixos-rebuild switch --flake .#
|
||||||
|
|
||||||
|
hn=$(hostname)
|
||||||
|
home-manager switch --flake .#daniel-$hn
|
||||||
|
popd
|
||||||
@@ -50,8 +50,13 @@
|
|||||||
file = {
|
file = {
|
||||||
".icons/default".source = "${pkgs.capitaine-cursors}/share/icons/capitaine-cursors";
|
".icons/default".source = "${pkgs.capitaine-cursors}/share/icons/capitaine-cursors";
|
||||||
|
|
||||||
"bin/supdate" = {
|
"bin/aupdate" = {
|
||||||
source = ../../scripts/supdate;
|
source = ../../scripts/aupdate;
|
||||||
|
executable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
"bin/bupdate" = {
|
||||||
|
source = ../../scripts/bupdate;
|
||||||
executable = true;
|
executable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -60,13 +65,13 @@
|
|||||||
executable = true;
|
executable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
"bin/update" = {
|
"bin/supdate" = {
|
||||||
source = ../../scripts/update;
|
source = ../../scripts/supdate;
|
||||||
executable = true;
|
executable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
"bin/aupdate" = {
|
"bin/update" = {
|
||||||
source = ../../scripts/aupdate;
|
source = ../../scripts/update;
|
||||||
executable = true;
|
executable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user