refactor: move common darwin config
This commit is contained in:
parent
704ec27d66
commit
0d901183f6
3 changed files with 18 additions and 32 deletions
14
machines/common/darwin/default.nix
Normal file
14
machines/common/darwin/default.nix
Normal 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;
|
||||
}
|
|
@ -7,10 +7,6 @@
|
|||
cleanup = "uninstall";
|
||||
upgrade = true;
|
||||
};
|
||||
brews = [
|
||||
"koekeishiya/formulae/yabai"
|
||||
"koekeishiya/formulae/skhd"
|
||||
];
|
||||
casks = let
|
||||
skipSha = name: {
|
||||
inherit name;
|
||||
|
@ -30,17 +26,14 @@
|
|||
"firefox"
|
||||
"iina"
|
||||
"imageoptim"
|
||||
"insomnia"
|
||||
"jetbrains-toolbox"
|
||||
"karabiner-elements"
|
||||
"keepassxc"
|
||||
"keka"
|
||||
"little-snitch"
|
||||
"mattermost"
|
||||
"mullvadvpn"
|
||||
"obs"
|
||||
"postman"
|
||||
"qt-creator"
|
||||
"rustdesk"
|
||||
"uninstallpkg"
|
||||
"utm"
|
||||
|
@ -58,11 +51,6 @@
|
|||
"uhk-agent"
|
||||
(noQuarantine "vial")
|
||||
];
|
||||
taps = [
|
||||
"homebrew/cask"
|
||||
"homebrew/cask-drivers"
|
||||
"homebrew/services"
|
||||
"koekeishiya/formulae"
|
||||
];
|
||||
taps = ["homebrew/cask" "homebrew/cask-drivers"];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,26 +1,10 @@
|
|||
{
|
||||
imports = [
|
||||
./brew.nix
|
||||
../common/darwin
|
||||
];
|
||||
|
||||
users.users.winston.home = "/Users/winston";
|
||||
|
||||
networking = let
|
||||
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;
|
||||
networking.computerName = "sashimi";
|
||||
networking.hostName = "sashimi";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue