athens/nix/modules/base/darwin.nix

54 lines
821 B
Nix
Raw Normal View History

2024-12-07 20:46:15 -05:00
{ ... }:
{
2024-12-07 20:46:15 -05:00
imports = [
./common.nix
../../users
];
2023-01-31 22:01:21 -05:00
nix = {
configureBuildUsers = true;
extraOptions = ''
extra-platforms = x86_64-darwin aarch64-darwin
'';
2022-11-25 22:50:34 -05:00
gc = {
2023-02-13 17:31:23 -05:00
interval = {
Hour = 3;
Minute = 16;
Weekday = 6;
};
2023-06-19 16:36:44 -04:00
options = "--delete-older-than 30d";
2022-11-25 22:50:34 -05:00
};
settings = {
2024-12-07 20:46:15 -05:00
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;
};
};
system.stateVersion = 4;
2022-06-06 23:39:53 -04:00
}