added timer to clean download folder every day
This commit is contained in:
parent
135628a964
commit
d3e843d964
1 changed files with 21 additions and 0 deletions
|
@ -33,6 +33,27 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Regularly clean download folder
|
||||||
|
systemd = {
|
||||||
|
timers."clean-download" = {
|
||||||
|
wantedBy = [ "timers.target" ];
|
||||||
|
timerConfig = {
|
||||||
|
OnCalendar = "*-*-* 03:00:00";
|
||||||
|
Unit = "clean-download.service";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services."clean-download" = {
|
||||||
|
script = ''
|
||||||
|
${pkgs.coreutils}/bin/rm -rf /home/user/${conf.username}/Downloads
|
||||||
|
'';
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "oneshot";
|
||||||
|
User = "root";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
home-manager.users.${conf.username}.home.packages = [ pkgs.overskride ];
|
home-manager.users.${conf.username}.home.packages = [ pkgs.overskride ];
|
||||||
|
|
||||||
services.blueman.enable = true;
|
services.blueman.enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue