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