diff options
author | Michael Hoang <enzime@users.noreply.github.com> | 2023-06-07 12:39:27 +1000 |
---|---|---|
committer | Michael Hoang <enzime@users.noreply.github.com> | 2023-07-06 21:32:08 +1000 |
commit | 285f5e858eb204ecf08a60c40a99aee1d2dc7bd1 (patch) | |
tree | 05716c752d412a11851579ff016359f11c6c9ee4 /nixos/modules/profiles | |
parent | f292b4964cb71f9dfbbd30dc9f511d6165cd109b (diff) |
darwin.builder: use port 31022 by default
Diffstat (limited to 'nixos/modules/profiles')
-rw-r--r-- | nixos/modules/profiles/macos-builder.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nixos/modules/profiles/macos-builder.nix b/nixos/modules/profiles/macos-builder.nix index 768c673e7f37..f1c991d6ffa6 100644 --- a/nixos/modules/profiles/macos-builder.nix +++ b/nixos/modules/profiles/macos-builder.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, lib, ... }: let keysDirectory = "/var/keys"; @@ -67,9 +67,9 @@ in ''; }; hostPort = mkOption { - default = 22; + default = 31022; type = types.int; - example = 31022; + example = 22; description = '' The localhost host port to forward TCP to the guest port. ''; @@ -139,13 +139,13 @@ in hostPkgs = config.virtualisation.host.pkgs; - script = hostPkgs.writeShellScriptBin "create-builder" ( + script = hostPkgs.writeShellScriptBin "create-builder" ( # When running as non-interactively as part of a DarwinConfiguration the working directory # must be set to a writeable directory. (if cfg.workingDirectory != "." then '' ${hostPkgs.coreutils}/bin/mkdir --parent "${cfg.workingDirectory}" cd "${cfg.workingDirectory}" - '' else "") + '' + '' else "") + '' KEYS="''${KEYS:-./keys}" ${hostPkgs.coreutils}/bin/mkdir --parent "''${KEYS}" PRIVATE_KEY="''${KEYS}/${user}_${keyType}" |