diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-05-29 11:08:24 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-05-29 11:08:24 +0200 |
commit | 776580c9b55896ce5bcda678c1f7b1a3fb7653be (patch) | |
tree | cb18dbfa1e899b50fd3dad2b7c1b46c34ae8bae9 | |
parent | 5a341d23149269e7de80039bb592eefb5195de8e (diff) | |
download | nixos-776580c9b55896ce5bcda678c1f7b1a3fb7653be.tar nixos-776580c9b55896ce5bcda678c1f7b1a3fb7653be.tar.gz nixos-776580c9b55896ce5bcda678c1f7b1a3fb7653be.tar.bz2 nixos-776580c9b55896ce5bcda678c1f7b1a3fb7653be.tar.xz nixos-776580c9b55896ce5bcda678c1f7b1a3fb7653be.zip |
Autoupgrade und ymir
-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 | } |