summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-04-14 18:46:19 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2017-04-14 18:46:19 +0200
commit91fd61d95fdede3e1ce228da2f1e6a48e8714360 (patch)
tree2378d7e40fa56028c6b3bdb2c005a988f9773e80
parentea12d5f3374b80bde1e73e0694db957c9acdf554 (diff)
downloadnixos-91fd61d95fdede3e1ce228da2f1e6a48e8714360.tar
nixos-91fd61d95fdede3e1ce228da2f1e6a48e8714360.tar.gz
nixos-91fd61d95fdede3e1ce228da2f1e6a48e8714360.tar.bz2
nixos-91fd61d95fdede3e1ce228da2f1e6a48e8714360.tar.xz
nixos-91fd61d95fdede3e1ce228da2f1e6a48e8714360.zip
Pull repo before automatic sysupgrade
-rw-r--r--bragi.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/bragi.nix b/bragi.nix
index a5eaa2d2..fe6122b6 100644
--- a/bragi.nix
+++ b/bragi.nix
@@ -423,4 +423,9 @@ in rec {
423 423
424 system.autoUpgrade.enable = true; 424 system.autoUpgrade.enable = true;
425 system.stateVersion = "16.09"; 425 system.stateVersion = "16.09";
426
427 systemd.services."nixos-upgrade".preStart = ''
428 git -C /etc/nixos pull
429 git -C /etc/nixos submodule update
430 '';
426} 431}