Removed garbage collection

This commit is contained in:
Julien Malka 2022-12-22 22:59:26 +01:00
parent 6690454de9
commit 0a54694b57
Signed by: Luj
GPG key ID: 6FC74C847011FD83
4 changed files with 0 additions and 15 deletions

View file

@ -23,7 +23,6 @@ in
root = inputs.homepage;
};
nix.gcRoots = [ inputs.homepage ];
};
}

View file

@ -45,6 +45,5 @@ with lib;
sops.secrets.ensmailmalka-pw = { };
sops.secrets.ensmailmondon-pw = { };
nix.gcRoots = [ inputs.simple-nixos-mailserver ];
};
}

View file

@ -8,21 +8,11 @@ with lib;
enable = mkEnableOption "Enable nix experimental";
};
options.nix.gcRoots = mkOption {
description = "A list of garbage collector roots.";
type = with types; listOf path;
default = [];
};
config = mkIf cfg.enable
{
nixpkgs.config.allowUnfree = true;
nix = {
autoOptimiseStore = true;
gc = {
automatic = true;
dates = "weekly";
};
package = pkgs.unstable.nix;
extraOptions = ''
experimental-features = nix-command flakes
@ -39,9 +29,7 @@ with lib;
"bin.julienmalka.me:RfXA+kPZt3SsMHGib5fY5mxJQLijfXzPbHjHD52ijyI="
];
gcRoots = [ inputs.neovim-nightly-overlay inputs.nixpkgs inputs.unstable inputs.home-manager ];
};
environment.etc.gc-roots.text = concatMapStrings (x: x + "\n") config.nix.gcRoots;
};
}

View file

@ -24,7 +24,6 @@ with lib;
format = "binary";
};
nix.gcRoots = [ inputs.sops-nix ];
};