diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-04-14 18:46:19 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-04-14 18:46:19 +0200 |
commit | 91fd61d95fdede3e1ce228da2f1e6a48e8714360 (patch) | |
tree | 2378d7e40fa56028c6b3bdb2c005a988f9773e80 | |
parent | ea12d5f3374b80bde1e73e0694db957c9acdf554 (diff) | |
download | nixos-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.nix | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 | } |