all repos — nixfiles @ fc361bf760dc3ea9ef657d4f16ecce7bbc5b4660

System and user configuration, managed by nix and home-manager

nix: Fix double auto-upgrade
Alan Pearce alan@alanpearce.eu
Thu, 14 Dec 2017 15:18:18 +0100
commit

fc361bf760dc3ea9ef657d4f16ecce7bbc5b4660

parent

18c8166b4feaae28e604cd2958e3696c49b77b69

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M modules/configuration/nix.nixmodules/configuration/nix.nix
@@ -25,7 +25,7 @@ system.autoUpgrade = {     enable = true;
   };
   systemd.services.nixos-upgrade = {
-    script = ''
+    script = pkgs.lib.mkForce ''
       ${config.system.build.nixos-rebuild}/bin/nixos-rebuild boot ${toString config.system.autoUpgrade.flags}
     '';
   };