From 1b39efef3cfa1c3fbf8f073bd504825b0b930c1b Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Sun, 4 Oct 2026 21:09:02 +0200 Subject: nixos: remote builder: always have ssh set up --- modules/nixos/personal/system.nix | 12 +++++------- 1 file 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 ]; -- cgit v1.3.1