mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 11:14:08 +09:00
29 lines
758 B
Nix
29 lines
758 B
Nix
{ primaryUser, ... }:
|
|
{
|
|
# The account already exists in macOS; declaring only its home keeps
|
|
# nix-darwin from taking ownership of user creation and deletion.
|
|
users.users.${primaryUser}.home = "/Users/${primaryUser}";
|
|
|
|
nix.settings = {
|
|
allowed-users = [ primaryUser ];
|
|
trusted-users = [
|
|
"root"
|
|
primaryUser
|
|
];
|
|
};
|
|
|
|
system.defaults.dock = {
|
|
# Finder and Trash are managed by macOS and do not belong in this list.
|
|
persistent-apps = [
|
|
"/Applications/Google Chrome.app"
|
|
"/Applications/Zed.app"
|
|
"/Applications/Visual Studio Code.app"
|
|
"/Applications/Slack.app"
|
|
"/Applications/Vesktop.app"
|
|
"/Applications/Ghostty.app"
|
|
];
|
|
persistent-others = [ ];
|
|
show-recents = false;
|
|
};
|
|
}
|