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

42 lines
845 B
Nix

{
pkgs,
lib,
config,
...
}:
{
programs.git.enable = true;
programs.nh = {
enable = true;
clean = {
enable = true;
extraArgs = "--keep-since 7d";
};
flake = "git+https://git.icanttype.org/cdombroski/nix-configs.git";
};
nix = {
settings = {
experimental-features = [
"nix-command"
"flakes"
];
use-xdg-base-directories = true;
};
optimise.automatic = true;
};
environment.systemPackages = [ pkgs.nix-output-monitor ];
system.autoUpgrade = {
enable = true;
flake = "git+https://git.icanttype.org/cdombroski/nix-configs.git";
allowReboot = true;
flags = lib.lists.optionals config.nixpkgs.hostPlatform.isAarch64 [
"--build-host"
"zeus"
];
rebootWindow = {
lower = "02:00";
upper = "06:00";
};
};
}