My Nix Configuration

[def-config] remove nh

Changed files
+2 -12
nixosModules
default-config
+2 -4
nixosModules/default-config/nixConfig.nix
···
{
nix = {
enable = true;
-
# We use `nh.clean` instead, so this is disabled
-
gc.automatic = false;
+
gc.automatic = true;
registry = lib.mapAttrs (_: v: { flake = v; }) flakeInputs;
settings = {
# Don't auto-accept flake-defined nix settings, they're a CVE waiting to happen.
···
keep-going = true;
# More direnv gc root stuff
keep-outputs = true;
-
# Show fewer log lines from failed builds since I get them from nh
-
log-lines = 10;
+
log-lines = 20;
# Limit the max amount of builds
max-jobs = lib.mkDefault 4;
# Extra system features
-1
nixosModules/default-config/programs/default.nix
···
{
imports = [
./ssh.nix
-
./nh.nix
];
programs.fish.enable = true;
}
-7
nixosModules/default-config/programs/nh.nix
···
-
_: {
-
programs.nh = {
-
enable = true;
-
clean.enable = true;
-
clean.extraArgs = "-k 5";
-
};
-
}