attempt 4

This commit is contained in:
KoenDR06 2025-11-19 22:10:08 +01:00
parent 040975ba28
commit 46da0f1495

View file

@ -22,16 +22,15 @@ in {
}; };
}; };
systemd.services."flake-update" = let systemd.services."flake-update" = {
git = "${pkgs.git}/bin/git";
in {
script = '' script = ''
#!/run/current-system/sw/bin/zsh
cd /home/horseman/nix-config cd /home/horseman/nix-config
${git} pull git pull
nix flake update sudo nix flake update
rebuild .#${config.networking.hostName} rebuild .#${config.networking.hostName}
${git} commit flake.lock -m "Update flake" git commit flake.lock -m "Update flake"
${git} push git push
''; '';
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";