mirror of
https://github.com/srid/nixos-config.git
synced 2026-07-16 22:01:33 +08:00
gc
This commit is contained in:
parent
ae132df43d
commit
35ac61cfdc
4 changed files with 15 additions and 8 deletions
|
|
@ -7,6 +7,7 @@ in
|
|||
imports = [
|
||||
self.homeModules.default
|
||||
self.homeModules.darwin-only
|
||||
(self + /modules/home/nix/gc.nix)
|
||||
];
|
||||
|
||||
home.username = "srid";
|
||||
|
|
|
|||
|
|
@ -30,17 +30,15 @@ in
|
|||
# Remote builders
|
||||
"${homeMod}/nix/buildMachines"
|
||||
"${homeMod}/nix/buildMachines/sincereintent.nix"
|
||||
|
||||
"${homeMod}/nix/gc.nix"
|
||||
];
|
||||
|
||||
nix.settings = {
|
||||
sandbox = "relaxed";
|
||||
extra-experimental-features = [ "impure-derivations" "ca-derivations" ];
|
||||
};
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
# GC is handled via home-manager (modules/home/nix/gc.nix)
|
||||
|
||||
zramSwap.enable = true;
|
||||
swapDevices = [{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue