mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix: expose auto-gc as homeModule
This commit is contained in:
parent
f9ac81a1a0
commit
bd67a685dd
3 changed files with 14 additions and 15 deletions
10
nix/homeModules/auto-gc/default.nix
Normal file
10
nix/homeModules/auto-gc/default.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
frequency = lib.mkMerge [
|
||||
(lib.mkIf pkgs.stdenv.isDarwin "daily")
|
||||
(lib.mkIf pkgs.stdenv.isLinux "1 day")
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue