Home-manager auto-gc
This commit is contained in:
parent
4a43725e99
commit
e8491afa12
1 changed files with 16 additions and 4 deletions
|
@ -79,10 +79,22 @@
|
||||||
tray.enable = true;
|
tray.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.targets.tray = {
|
systemd.user = {
|
||||||
Unit = {
|
services.gc = {
|
||||||
Description = "System Tray";
|
Service = {
|
||||||
Requires = [ "graphical-session-pre.target" ];
|
Exec = "nix-collect-garbage --delete-older-than 30d";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
timers.gc = {
|
||||||
|
Timer = {
|
||||||
|
OnCalendar = "weekly";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
targets.tray = {
|
||||||
|
Unit = {
|
||||||
|
Description = "System Tray";
|
||||||
|
Requires = [ "graphical-session-pre.target" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue