18 lines
292 B
Nix
18 lines
292 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
moduleName = "nixos-housekeeping";
|
|
in
|
|
{
|
|
|
|
nix.gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 7d";
|
|
};
|
|
nix.settings.auto-optimise-store = true;
|
|
|
|
|
|
environment.etc."nixlog/loaded.${moduleName}".text = "loaded\n";
|
|
}
|