diff options
-rw-r--r-- | hel.nix | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -558,4 +558,12 @@ | |||
558 | disable spoolss = yes | 558 | disable spoolss = yes |
559 | ''; | 559 | ''; |
560 | }; | 560 | }; |
561 | |||
562 | systemd.services."nixos-upgrade" = { | ||
563 | path = with pkgs; [ git ]; | ||
564 | preStart = '' | ||
565 | git -C /etc/nixos fetch --recurse-submodules | ||
566 | git -C /etc/nixos reset --hard origin/master | ||
567 | ''; | ||
568 | }; | ||
561 | } | 569 | } |