Add scripts for updating system

This commit is contained in:
2021-11-11 01:56:21 +00:00
parent 48217c183b
commit 5c18949463
4 changed files with 25 additions and 1 deletions

6
scripts/home-update.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
pushd ~/.dotfiles
hn=$(hostname)
home-manager switch --flake .#daniel-$hn
popd

View File

@@ -1,2 +1,5 @@
#!/bin/sh #!/bin/sh
pushd ~/.dotfiles
nix flake update nix flake update
popd

View File

@@ -14,7 +14,22 @@
home.username = "daniel"; home.username = "daniel";
home.homeDirectory = "/home/daniel"; home.homeDirectory = "/home/daniel";
home.file.".icons/default".source = "${pkgs.capitaine-cursors}/share/icons/capitaine-cursors"; home.file = {
".icons/default".source = "${pkgs.capitaine-cursors}/share/icons/capitaine-cursors";
"bin/system-update.sh" = {
source = ../../scripts/system-update.sh;
executable = true;
};
"bin/home-update.sh" = {
source = ../../scripts/home-update.sh;
executable = true;
};
"bin/update.sh" = {
source = ../../scripts/update.sh;
executable = true;
};
};
xsession.enable = true; xsession.enable = true;
services.dunst.enable = true; services.dunst.enable = true;