mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-09 08:08:32 +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 = [{
|
||||
|
|
|
|||
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -821,11 +821,11 @@
|
|||
},
|
||||
"kolu": {
|
||||
"locked": {
|
||||
"lastModified": 1774648176,
|
||||
"narHash": "sha256-CT6Ce/bvi/4fRRG1eGpa9f2z19rrPPRZGvtJ4exX3+U=",
|
||||
"lastModified": 1774651180,
|
||||
"narHash": "sha256-YmAU9cLTccojhqkGFZdm0L/dbZkPw7sPJxo6uirlsto=",
|
||||
"owner": "juspay",
|
||||
"repo": "kolu",
|
||||
"rev": "c9d6087cfae6f06ae637bc08b4e8db3e5e07fcc3",
|
||||
"rev": "575b3c18672e6a31784046d5e1c777242ab5f886",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
|||
8
modules/home/nix/gc.nix
Normal file
8
modules/home/nix/gc.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "daily";
|
||||
options = "--delete-older-than 1d";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue