summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hel.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/hel.nix b/hel.nix
index 737ba305..bc65d25d 100644
--- a/hel.nix
+++ b/hel.nix
@@ -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}