2023-07-27 15:22:16 -04:00
|
|
|
{ pkgs, dotfiles, ... }: {
|
2022-08-28 20:13:46 -04:00
|
|
|
|
2023-01-31 22:01:21 -05:00
|
|
|
imports = [ ./common.nix ];
|
|
|
|
|
2022-08-28 20:13:46 -04: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
|
|
|
};
|
2022-08-28 20:13:46 -04: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
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2022-09-06 22:03:48 -04:00
|
|
|
homebrew = {
|
|
|
|
enable = true;
|
|
|
|
brewPrefix = "/opt/homebrew/bin";
|
|
|
|
global = {
|
|
|
|
brewfile = true;
|
|
|
|
lockfiles = false;
|
|
|
|
};
|
|
|
|
onActivation = {
|
|
|
|
autoUpdate = true;
|
|
|
|
cleanup = "zap";
|
|
|
|
upgrade = true;
|
|
|
|
};
|
|
|
|
};
|
2023-01-01 13:37:25 -05:00
|
|
|
|
2023-09-10 14:27:05 -04:00
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
|
|
|
users.walkah = import "${dotfiles}/home.nix";
|
|
|
|
};
|
2023-07-27 15:22:16 -04:00
|
|
|
|
2023-01-01 13:37:25 -05:00
|
|
|
nixpkgs.config.packageOverrides = pkgs: {
|
|
|
|
haskellPackages = pkgs.haskellPackages.override {
|
|
|
|
overrides = _self: super: {
|
|
|
|
niv = pkgs.haskell.lib.overrideCabal super.niv (_drv: {
|
|
|
|
enableSeparateBinOutput = false;
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-02-20 13:28:35 -05:00
|
|
|
|
2023-03-25 15:17:55 -04:00
|
|
|
users.users.walkah = {
|
|
|
|
home = "/Users/walkah";
|
|
|
|
shell = pkgs.zsh;
|
|
|
|
};
|
|
|
|
|
2023-02-20 13:28:35 -05:00
|
|
|
system.stateVersion = 4;
|
2022-06-06 23:39:53 -04:00
|
|
|
}
|