attempt 4
This commit is contained in:
parent
040975ba28
commit
46da0f1495
1 changed files with 6 additions and 7 deletions
|
|
@ -22,16 +22,15 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
systemd.services."flake-update" = let
|
||||
git = "${pkgs.git}/bin/git";
|
||||
in {
|
||||
systemd.services."flake-update" = {
|
||||
script = ''
|
||||
#!/run/current-system/sw/bin/zsh
|
||||
cd /home/horseman/nix-config
|
||||
${git} pull
|
||||
nix flake update
|
||||
git pull
|
||||
sudo nix flake update
|
||||
rebuild .#${config.networking.hostName}
|
||||
${git} commit flake.lock -m "Update flake"
|
||||
${git} push
|
||||
git commit flake.lock -m "Update flake"
|
||||
git push
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue