nix-configs/nixos-modules/common/nix.nix

32 lines
736 B
Nix
Raw Normal View History

2024-11-13 11:05:23 -05:00
{ pkgs, lib, config, ... }:
2024-09-05 19:08:29 -04:00
{
2024-05-03 00:26:20 -04:00
programs.git.enable = true;
2024-05-31 00:27:06 -04:00
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 7d";
};
2024-09-20 20:59:41 -04:00
2024-07-30 09:11:17 -04:00
nix = {
2024-09-05 19:08:29 -04:00
settings = {
experimental-features = [
"nix-command"
"flakes"
];
2024-09-20 20:59:41 -04:00
use-xdg-base-directories = true;
2024-09-05 19:08:29 -04:00
};
2024-04-27 22:10:36 -04:00
optimise.automatic = true;
};
2024-09-27 21:38:27 -04:00
environment.systemPackages = [ pkgs.nix-output-monitor ];
2024-04-27 22:10:36 -04:00
system.autoUpgrade = {
enable = true;
flake = "git+https://git.icanttype.org/cdombroski/nix-configs.git";
allowReboot = true;
2024-11-13 11:05:23 -05:00
flags = lib.lists.optionals config.nixpkgs.hostPlatform.isAarch64 [ "--build-host" "zeus" ];
2024-05-30 20:39:54 -04:00
rebootWindow = {
lower = "02:00";
upper = "06:00";
};
2024-04-27 22:10:36 -04:00
};
}