diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2025-03-16 14:13:03 +0100 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2025-03-16 14:13:03 +0100 |
| commit | 3f8048a39b0e9ded178f394c3e38d0013a4e741c (patch) | |
| tree | 8d6a199554334cf2f81532d2bc062d64a862281a /modules/nixos/personal | |
| parent | d209a568b82602f2cbc00e136e43d2104dc024c3 (diff) | |
nixos: autoUpgrade: don't force new flags
Diffstat (limited to 'modules/nixos/personal')
| -rw-r--r-- | modules/nixos/personal/nix.nix | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/modules/nixos/personal/nix.nix b/modules/nixos/personal/nix.nix index 17df364..07b0071 100644 --- a/modules/nixos/personal/nix.nix +++ b/modules/nixos/personal/nix.nix @@ -173,16 +173,7 @@ in { }) (lib.mkIf hasFlake { - # don't use system.autoUpgrade.flake, as it enables the --refresh flag - assertions = [ - { - assertion = !((config.system.autoUpgrade.channel != null)); - message = '' - The options 'system.autoUpgrade.channel' and 'personal.nix.flake' cannot both be set. - ''; - } - ]; - system.autoUpgrade.flags = lib.mkForce ["--flake ${cfg.flake}"]; + system.autoUpgrade.flake = cfg.flake; systemd.services.flake-update = lib.mkIf hasFlakeInputs (lib.mkMerge [ checkNetwork { |
