diff options
-rw-r--r-- | ymir.nix | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 | } |