From 9f2f96f7275fe74803e01e9d544e499887db83ac Mon Sep 17 00:00:00 2001 From: Peter Rice Date: Sat, 30 May 2026 21:50:16 -0400 Subject: [PATCH] darwin: set system.primaryUser --- modules/user/peter.nix | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/modules/user/peter.nix b/modules/user/peter.nix index 97be298..c74c292 100644 --- a/modules/user/peter.nix +++ b/modules/user/peter.nix @@ -31,25 +31,24 @@ let in { - config.flake.modules.nixos.user = - { config, ... }: - { - imports = [ - { inherit options; } - aliasModule - ]; - local.user = { - isNormalUser = true; - extraGroups = [ "wheel" ]; - inherit openssh; - }; + config.flake.modules.nixos.user = { + imports = [ + { inherit options; } + aliasModule + ]; + local.user = { + isNormalUser = true; + extraGroups = [ "wheel" ]; + inherit openssh; }; + }; - config.flake.modules.darwin.default = { + config.flake.modules.darwin.default = { config, ... }: { imports = [ { inherit options; } aliasModule ]; + system.primaryUser = config.local.username; local.user = { inherit openssh; }; }; } -- 2.51.2