athens/modules/base/darwin.nix

39 lines
674 B
Nix
Raw Normal View History

2022-06-06 23:39:53 -04:00
{ pkgs, config, ... }: {
nix = {
configureBuildUsers = true;
extraOptions = ''
extra-platforms = x86_64-darwin aarch64-darwin
experimental-features = nix-command flakes
'';
2022-11-25 22:50:34 -05:00
gc = {
automatic = true;
};
settings = {
trusted-users = [ "root" "@admin" ];
};
};
2022-11-08 23:18:44 -05:00
environment.etc = {
"sudoers.d/walkah".text = ''
walkah ALL = (ALL) NOPASSWD: ALL
'';
};
homebrew = {
enable = true;
brewPrefix = "/opt/homebrew/bin";
global = {
brewfile = true;
lockfiles = false;
};
onActivation = {
autoUpdate = true;
cleanup = "zap";
upgrade = true;
};
};
2022-06-06 23:39:53 -04:00
}