mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-27 06:10:53 +01:00
Removed garbage collection
This commit is contained in:
parent
6690454de9
commit
0a54694b57
4 changed files with 0 additions and 15 deletions
|
@ -23,7 +23,6 @@ in
|
|||
root = inputs.homepage;
|
||||
};
|
||||
|
||||
nix.gcRoots = [ inputs.homepage ];
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
@ -45,6 +45,5 @@ with lib;
|
|||
sops.secrets.ensmailmalka-pw = { };
|
||||
sops.secrets.ensmailmondon-pw = { };
|
||||
|
||||
nix.gcRoots = [ inputs.simple-nixos-mailserver ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
@ -24,7 +24,6 @@ with lib;
|
|||
format = "binary";
|
||||
};
|
||||
|
||||
nix.gcRoots = [ inputs.sops-nix ];
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue