diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2026-10-04 21:09:02 +0200 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2026-10-04 21:09:02 +0200 |
| commit | 1b39efef3cfa1c3fbf8f073bd504825b0b930c1b (patch) | |
| tree | 243ec8b48448d85b159c6ca6e0ad62decb355126 | |
| parent | eac22c49c52d69fa89676ce4ac102969c9a99cc6 (diff) | |
| download | my-nixpkgs-1b39efef3cfa1c3fbf8f073bd504825b0b930c1b.tar.gz my-nixpkgs-1b39efef3cfa1c3fbf8f073bd504825b0b930c1b.tar.bz2 my-nixpkgs-1b39efef3cfa1c3fbf8f073bd504825b0b930c1b.tar.xz | |
nixos: remote builder: always have ssh set up
| -rw-r--r-- | modules/nixos/personal/system.nix | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/modules/nixos/personal/system.nix b/modules/nixos/personal/system.nix index 8187088..959f419 100644 --- a/modules/nixos/personal/system.nix +++ b/modules/nixos/personal/system.nix @@ -104,13 +104,11 @@ in }; }) - (lib.mkIf (cfg.autoUpgrade.enable && cfgRemote.enable) { - assertions = [ - { - assertion = hasFlake && lib.hasPrefix "git+file://" cfg.flake; - message = "Auto remote upgrade is only supported when the system is specified by a flake with path of the shape 'git+file://...'"; - } - ]; + (lib.mkIf cfgRemote.enable { + assertions = lib.optional cfg.autoUpgrade.enable ({ + assertion = hasFlake && lib.hasPrefix "git+file://" cfg.flake; + message = "Auto remote upgrade is only supported when the system is specified by a flake with path of the shape 'git+file://...'"; + }); personal.system.autoUpgrade.checkHosts = lib.mkOptionDefault [ remoteBuilder ]; |
