From 91fd61d95fdede3e1ce228da2f1e6a48e8714360 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 14 Apr 2017 18:46:19 +0200 Subject: Pull repo before automatic sysupgrade --- bragi.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bragi.nix b/bragi.nix index a5eaa2d2..fe6122b6 100644 --- a/bragi.nix +++ b/bragi.nix @@ -423,4 +423,9 @@ in rec { system.autoUpgrade.enable = true; system.stateVersion = "16.09"; + + systemd.services."nixos-upgrade".preStart = '' + git -C /etc/nixos pull + git -C /etc/nixos submodule update + ''; } -- cgit v1.2.3