summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ymir.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/ymir.nix b/ymir.nix
index c0c14b0c..77bc3e01 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -810,4 +810,13 @@ in rec {
810 services.haveged = { 810 services.haveged = {
811 enable = true; 811 enable = true;
812 }; 812 };
813
814 system.autoupgrade.enable = true;
815 system.stateVersion = "17.09";
816
817 systemd.services."nixos-upgrade".path = with pkgs; [ git ];
818 systemd.services."nixos-upgrade".preStart = ''
819 git -C /etc/nixos pull
820 git -C /etc/nixos submodule update
821 '';
813} 822}