athens/modules/base/darwin.nix

59 lines
1.1 KiB
Nix
Raw Normal View History

2022-12-27 10:10:53 -05:00
_: {
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 = {
2023-01-30 22:06:36 -05:00
auto-optimise-store = true;
substituters = [
"https://walkah.cachix.org"
];
trusted-users = [ "root" "@admin" ];
2023-01-30 22:06:36 -05:00
trusted-public-keys = [
"walkah.cachix.org-1:D8cO78JoJC6UPV1ZMgd1V5znpk3jNUERGIeAKN15hxo="
];
};
};
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;
};
};
nixpkgs.config.packageOverrides = pkgs: {
haskellPackages = pkgs.haskellPackages.override {
overrides = _self: super: {
niv = pkgs.haskell.lib.overrideCabal super.niv (_drv: {
enableSeparateBinOutput = false;
});
};
};
};
2022-06-06 23:39:53 -04:00
}