summaryrefslogtreecommitdiffstats
path: root/nixos/modules/profiles
diff options
context:
space:
mode:
authorGabriella Gonzalez <Gabriel439@gmail.com>2023-01-03 21:12:56 -0800
committerGitHub <noreply@github.com>2023-01-03 21:12:56 -0800
commit6d89aa8f1d238cc5ed97215f7e229b8283bef027 (patch)
treeb3d3c194c51095acc27e4212625bd36c62280fd5 /nixos/modules/profiles
parentd067c8aa5f6e15a48c1baaee5d290264e2d4acd0 (diff)
darwin.builder: auto-login as the `builder` user (#208772)
… as suggested by @NiklasGollenstede in: https://github.com/NixOS/nixpkgs/pull/206951#issuecomment-1369020601 This simplifies the user experience for logging into and debugging the machine and also simplifies the instructions for shutting down the machine gracefully.
Diffstat (limited to 'nixos/modules/profiles')
-rw-r--r--nixos/modules/profiles/macos-builder.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/nixos/modules/profiles/macos-builder.nix b/nixos/modules/profiles/macos-builder.nix
index fddf19ad1251..4a5359582bce 100644
--- a/nixos/modules/profiles/macos-builder.nix
+++ b/nixos/modules/profiles/macos-builder.nix
@@ -59,10 +59,14 @@ in
trusted-users = [ "root" user ];
};
- services.openssh = {
- enable = true;
+ services = {
+ getty.autologinUser = user;
- authorizedKeysFiles = [ "${keysDirectory}/%u_${keyType}.pub" ];
+ openssh = {
+ enable = true;
+
+ authorizedKeysFiles = [ "${keysDirectory}/%u_${keyType}.pub" ];
+ };
};
system.build.macos-builder-installer =