athens/nix/modules/base/darwin.nix

58 lines
1003 B
Nix
Raw Normal View History

{ pkgs, dotfiles, ... }: {
2023-01-31 22:01:21 -05:00
imports = [ ./common.nix ];
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 = {
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;
};
};
2023-09-10 14:27:05 -04:00
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.walkah = import "${dotfiles}/home.nix";
};
2023-03-25 15:17:55 -04:00
users.users.walkah = {
home = "/Users/walkah";
shell = pkgs.zsh;
};
system.stateVersion = 4;
2022-06-06 23:39:53 -04:00
}