2024-05-03 00:26:20 -04:00
|
|
|
{pkgs, lib, inputs, config, ...}: {
|
2024-04-27 22:10:36 -04:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
nix-output-monitor
|
|
|
|
];
|
2024-05-03 00:26:20 -04:00
|
|
|
programs.git.enable = true;
|
|
|
|
nix = let
|
|
|
|
flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
|
|
|
|
in {
|
|
|
|
settings = {
|
|
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
flake-registry = "";
|
|
|
|
nix-path = config.nix.nixPath;
|
|
|
|
};
|
2024-04-27 22:10:36 -04:00
|
|
|
gc = {
|
|
|
|
automatic = true;
|
2024-05-11 11:48:11 -04:00
|
|
|
options = "--delete-older-than 7d";
|
2024-04-27 22:10:36 -04:00
|
|
|
dates = "weekly";
|
|
|
|
};
|
|
|
|
optimise.automatic = true;
|
2024-05-03 00:26:20 -04:00
|
|
|
registry = lib.mapAttrs (_: flake: {inherit flake;}) flakeInputs;
|
|
|
|
nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs;
|
2024-04-27 22:10:36 -04:00
|
|
|
};
|
|
|
|
system.autoUpgrade = {
|
|
|
|
enable = true;
|
|
|
|
flake = "git+https://git.icanttype.org/cdombroski/nix-configs.git";
|
2024-04-29 20:43:12 -04:00
|
|
|
allowReboot = true;
|
|
|
|
rebootWindow = { lower = "02:00"; upper = "06:00"; };
|
2024-04-27 22:10:36 -04:00
|
|
|
};
|
|
|
|
}
|