nixos/autoUpgrade: add --refresh when using flakes (#337436)

authored by

Masum Reza and committed by
GitHub
a8e2b007 0fe41655

+1 -1
+1 -1
nixos/modules/tasks/auto-upgrade.nix
··· 181 "nixpkgs=${cfg.channel}/nixexprs.tar.xz" 182 ] 183 else 184 - [ "--flake ${cfg.flake}" ]); 185 186 systemd.services.nixos-upgrade = { 187 description = "NixOS Upgrade";
··· 181 "nixpkgs=${cfg.channel}/nixexprs.tar.xz" 182 ] 183 else 184 + [ "--refresh" "--flake ${cfg.flake}" ]); 185 186 systemd.services.nixos-upgrade = { 187 description = "NixOS Upgrade";