1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

systemd-tmpfiles-clean: enable for user

This commit is contained in:
2025-04-15 14:22:28 +02:00
parent 6fcba6dc75
commit 046f2ca75d

View File

@@ -6,6 +6,16 @@
}: let
inherit (import ../lib) tmpfilesConfig;
in {
systemd.user.services.systemd-tmpfiles-clean = {
enable = true;
wantedBy = [ "default.target" ];
startAt = "daily";
script = "systemd-tmpfiles --user --clean";
serviceConfig = {
Type = "oneshot";
};
};
systemd.user.tmpfiles.users.me.rules = map tmpfilesConfig [
{
type = "d";