refactor: move common darwin config

This commit is contained in:
winston 2023-05-29 14:10:26 +02:00
parent 704ec27d66
commit 0d901183f6
Signed by: winston
GPG key ID: 3786770EDBC2B481
3 changed files with 18 additions and 32 deletions

View file

@ -0,0 +1,14 @@
{
# manipulate the global /etc/zshenv for PATH, etc.
programs.zsh.enable = true;
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
system.stateVersion = 4;
security.pam.enableSudoTouchIdAuth = true;
system.defaults.alf.stealthenabled = 1;
# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;
}

View file

@ -7,10 +7,6 @@
cleanup = "uninstall"; cleanup = "uninstall";
upgrade = true; upgrade = true;
}; };
brews = [
"koekeishiya/formulae/yabai"
"koekeishiya/formulae/skhd"
];
casks = let casks = let
skipSha = name: { skipSha = name: {
inherit name; inherit name;
@ -30,17 +26,14 @@
"firefox" "firefox"
"iina" "iina"
"imageoptim" "imageoptim"
"insomnia"
"jetbrains-toolbox" "jetbrains-toolbox"
"karabiner-elements" "karabiner-elements"
"keepassxc"
"keka" "keka"
"little-snitch" "little-snitch"
"mattermost" "mattermost"
"mullvadvpn" "mullvadvpn"
"obs" "obs"
"postman" "postman"
"qt-creator"
"rustdesk" "rustdesk"
"uninstallpkg" "uninstallpkg"
"utm" "utm"
@ -58,11 +51,6 @@
"uhk-agent" "uhk-agent"
(noQuarantine "vial") (noQuarantine "vial")
]; ];
taps = [ taps = ["homebrew/cask" "homebrew/cask-drivers"];
"homebrew/cask"
"homebrew/cask-drivers"
"homebrew/services"
"koekeishiya/formulae"
];
}; };
} }

View file

@ -1,26 +1,10 @@
{ {
imports = [ imports = [
./brew.nix ./brew.nix
../common/darwin
]; ];
users.users.winston.home = "/Users/winston"; users.users.winston.home = "/Users/winston";
networking.computerName = "sashimi";
networking = let networking.hostName = "sashimi";
name = "sashimi";
in {
computerName = name;
hostName = name;
};
programs.zsh.enable = true;
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
system.stateVersion = 4;
security.pam.enableSudoTouchIdAuth = true;
system.defaults.alf.stealthenabled = 1;
# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;
} }