Add scripts for updating system
This commit is contained in:
6
scripts/home-update.sh
Executable file
6
scripts/home-update.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
pushd ~/.dotfiles
|
||||
hn=$(hostname)
|
||||
home-manager switch --flake .#daniel-$hn
|
||||
popd
|
||||
@@ -1,2 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
pushd ~/.dotfiles
|
||||
nix flake update
|
||||
popd
|
||||
@@ -14,7 +14,22 @@
|
||||
home.username = "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;
|
||||
services.dunst.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user