diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2025-03-10 10:27:16 +0100 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2025-03-10 11:20:26 +0100 |
| commit | 29324c0cd6440382616f6fd84aa82f72484de7a5 (patch) | |
| tree | 0f9f19a1090e2022dd9beb2f960a1d4427c43e89 /modules/nixos | |
| parent | 4061a1c959d01e5bb8c44c5a0fb047f83da77b89 (diff) | |
nixos: nix: remote build: add require option
Diffstat (limited to 'modules/nixos')
| -rw-r--r-- | modules/nixos/personal/nix.nix | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/modules/nixos/personal/nix.nix b/modules/nixos/personal/nix.nix index 1fd3eec..763d5d1 100644 --- a/modules/nixos/personal/nix.nix +++ b/modules/nixos/personal/nix.nix @@ -52,9 +52,19 @@ in { default = "ssh-ng"; }; speedFactor = lib.mkOption { - type = lib.types.int; + type = + lib.types.int; default = 4; }; + require = lib.mkOption { + type = + lib.types.bool; + default = true; + description = '' + Whether this remote builder is required to build the configuration. + If so, network connectivity to this remote builder will be checked prior to building. + ''; + }; }; }; }; @@ -192,7 +202,7 @@ in { }; }; - personal.nix.autoUpgrade.checkHosts = lib.mkDefault ["hephaistos.${domain}"]; + personal.nix.autoUpgrade.checkHosts = lib.mkOptionDefault (lib.optional require "hephaistos.${domain}"); programs.ssh = { extraConfig = lib.optionalString enable '' |
