56 lines
1001 B
Nix
56 lines
1001 B
Nix
_: {
|
|
|
|
imports = [ ./common.nix ];
|
|
|
|
nix = {
|
|
configureBuildUsers = true;
|
|
|
|
extraOptions = ''
|
|
extra-platforms = x86_64-darwin aarch64-darwin
|
|
'';
|
|
|
|
gc = {
|
|
interval = {
|
|
Hour = 3;
|
|
Minute = 16;
|
|
Weekday = 6;
|
|
};
|
|
};
|
|
settings = {
|
|
trusted-users = [ "root" "@admin" ];
|
|
};
|
|
};
|
|
|
|
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;
|
|
});
|
|
};
|
|
};
|
|
};
|
|
|
|
system.stateVersion = 4;
|
|
}
|