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";
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"];
};
}

View file

@ -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";
}