summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/nixos/personal/nix.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/nixos/personal/nix.nix b/modules/nixos/personal/nix.nix
index 02ada0f..d123f79 100644
--- a/modules/nixos/personal/nix.nix
+++ b/modules/nixos/personal/nix.nix
@@ -31,7 +31,7 @@ in {
};
checkHosts = lib.mkOption {
type = with lib.types; listOf str;
- default = config.nix.settings.substituters;
+ default = with builtins; concatMap (match "https://([^/]*)/?") config.nix.settings.substituters;
};
};
flake = lib.mkOption {
@@ -172,7 +172,7 @@ in {
'';
}
];
- system.autoUpgrade.flags = ["--flags ${cfg.flake}"];
+ system.autoUpgrade.flags = lib.mkForce ["--flake ${cfg.flake}"];
systemd.services.flake-update = lib.mkIf hasFlakeInputs (lib.mkMerge [
checkNetwork
{