This commit is contained in:
Sridhar Ratnakumar 2026-03-27 21:00:08 -04:00
parent ae132df43d
commit 35ac61cfdc
4 changed files with 15 additions and 8 deletions

View file

@ -7,6 +7,7 @@ in
imports = [
self.homeModules.default
self.homeModules.darwin-only
(self + /modules/home/nix/gc.nix)
];
home.username = "srid";

View file

@ -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
View file

@ -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
View file

@ -0,0 +1,8 @@
{ ... }:
{
nix.gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 1d";
};
}