From 2ce47665ae600e107925a89c01f06050df82331f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 15 Jul 2018 12:51:55 +0200 Subject: Be more aggressive than pull --- hel.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'hel.nix') diff --git a/hel.nix b/hel.nix index 737ba305..bc65d25d 100644 --- a/hel.nix +++ b/hel.nix @@ -558,4 +558,12 @@ disable spoolss = yes ''; }; + + systemd.services."nixos-upgrade" = { + path = with pkgs; [ git ]; + preStart = '' + git -C /etc/nixos fetch --recurse-submodules + git -C /etc/nixos reset --hard origin/master + ''; + }; } -- cgit v1.2.3