1
0
Fork 0

hosts/storage-2: Replace prepare script with tmpfiles

This commit is contained in:
clerie 2024-02-18 14:58:45 +01:00
parent 692da961d8
commit 15670ff541
1 changed files with 5 additions and 12 deletions

View File

@ -82,17 +82,10 @@ in {
};
users.groups.data-mixcloud = {};
systemd.services = {
"youtube-dl-prepare" = {
serviceConfig = {
Type = "oneshot";
RemainAfterExit = "true";
};
script = ''
mkdir -p /data/mixcloud
chown -R data-mixcloud:data-mixcloud /data/mixcloud
'';
};
} // (mapAttrs' generateYoutubedlMixcloudUnits mixcloudSources);
systemd.tmpfiles.rules = [
"d /data/mixcloud - data-mixcloud data-mixcloud - -"
];
systemd.services = (mapAttrs' generateYoutubedlMixcloudUnits mixcloudSources);
systemd.timers = (mapAttrs' generateYoutubedlMixcloudTimers mixcloudSources);
}