don't delete folder itself, only contents

This commit is contained in:
twoneis 2024-09-07 01:23:36 +02:00
parent d3e843d964
commit 570e763845

View file

@ -45,7 +45,7 @@ in {
services."clean-download" = {
script = ''
${pkgs.coreutils}/bin/rm -rf /home/user/${conf.username}/Downloads
${pkgs.coreutils}/bin/rm -rf /home/user/${conf.username}/Downloads/*
'';
serviceConfig = {
Type = "oneshot";