summaryrefslogtreecommitdiff
path: root/modules/nixos/personal
diff options
context:
space:
mode:
Diffstat (limited to 'modules/nixos/personal')
-rw-r--r--modules/nixos/personal/nix.nix11
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
{