summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-05-29 11:08:24 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2017-05-29 11:08:24 +0200
commit776580c9b55896ce5bcda678c1f7b1a3fb7653be (patch)
treecb18dbfa1e899b50fd3dad2b7c1b46c34ae8bae9
parent5a341d23149269e7de80039bb592eefb5195de8e (diff)
downloadnixos-776580c9b55896ce5bcda678c1f7b1a3fb7653be.tar
nixos-776580c9b55896ce5bcda678c1f7b1a3fb7653be.tar.gz
nixos-776580c9b55896ce5bcda678c1f7b1a3fb7653be.tar.bz2
nixos-776580c9b55896ce5bcda678c1f7b1a3fb7653be.tar.xz
nixos-776580c9b55896ce5bcda678c1f7b1a3fb7653be.zip
Autoupgrade und ymir
-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}