{ adminUser, pkgs, self, ... }: { imports = [ ./secrets.nix { home-manager.users.${adminUser.name} = { home.homeDirectory = "/Users/${adminUser.name}"; imports = [ ./home.nix { home.stateVersion = "23.05"; } ]; inherit (adminUser) userinfo; }; } "${self}/profiles/programs/home-manager.nix" "${self}/profiles/nix/remote-builder.nix" "${self}/profiles/darwin/desktop.nix" "${self}/profiles/darwin/keyboard.nix" "${self}/profiles/darwin/nix.nix" "${self}/profiles/darwin/security.nix" "${self}/profiles/desktop/fonts.nix" "${self}/profiles/programs/fish.nix" "${self}/profiles/programs/ssh.nix" ]; system.primaryUser = adminUser.name; # https://github.com/nix-darwin/nix-darwin/issues/1339 ids.gids.nixbld = 30000; networking.hostName = "mba-m2"; users = { users.${adminUser.name} = { home = "/Users/${adminUser.name}"; }; }; environment.shells = [ pkgs.fish ]; programs.fish.shellInit = '' # Nix if test -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.fish' source '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.fish' end # End Nix ''; }