diff options
author | Alan Pearce | 2020-05-19 12:31:09 +0200 |
---|---|---|
committer | Alan Pearce | 2020-05-19 12:31:09 +0200 |
commit | 63dcecf0b94f1c1e39efa93655a86141aef3c24a (patch) | |
tree | 7962b5d4c55dfec025da082494419f1f7218cd4d | |
parent | 69f5a373af817c0f1d1c138204b74cb10de5b917 (diff) | |
download | nixfiles-63dcecf0b94f1c1e39efa93655a86141aef3c24a.tar.lz nixfiles-63dcecf0b94f1c1e39efa93655a86141aef3c24a.tar.zst nixfiles-63dcecf0b94f1c1e39efa93655a86141aef3c24a.zip |
nix: update all channels before auto-upgrade
-rw-r--r-- | system/settings/configuration/nix.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/settings/configuration/nix.nix b/system/settings/configuration/nix.nix index ff7ef82e..85e14e2c 100644 --- a/system/settings/configuration/nix.nix +++ b/system/settings/configuration/nix.nix @@ -21,7 +21,8 @@ }; systemd.services.nixos-upgrade = { script = pkgs.lib.mkForce '' - ${config.system.build.nixos-rebuild}/bin/nixos-rebuild boot --no-build-output --upgrade ${toString config.system.autoUpgrade.flags} + ${pkgs.nix}/bin/nix-channel --update + ${config.system.build.nixos-rebuild}/bin/nixos-rebuild boot --no-build-output ${toString config.system.autoUpgrade.flags} ''; }; } |