Fix the pyLoad user/group option that I added upstream [1]. Fix an evaluation error due to Pipewire changes [2]. [1]: https://github.com/NixOS/nixpkgs/pull/287304 [2]: https://github.com/NixOS/nixpkgs/pull/282377
This commit is contained in:
parent
f9cdff8c13
commit
b9b47fffd6
3 changed files with 24 additions and 43 deletions
|
|
@ -39,31 +39,12 @@ in
|
|||
downloadDirectory
|
||||
port
|
||||
;
|
||||
};
|
||||
|
||||
# Use pyload user/media group when downloading files
|
||||
systemd.services.pyload = {
|
||||
serviceConfig = {
|
||||
User = lib.mkForce "pyload";
|
||||
Group = lib.mkForce "media";
|
||||
DynamicUser = lib.mkForce false;
|
||||
};
|
||||
};
|
||||
|
||||
# And make sure the download directory has the correct owners
|
||||
systemd.tmpfiles.settings.pyload = {
|
||||
${cfg.downloadDirectory}.d = {
|
||||
user = "pyload";
|
||||
group = "media";
|
||||
};
|
||||
};
|
||||
|
||||
# Set-up pyload user and media group
|
||||
users.users.pyload = {
|
||||
isSystemUser = true;
|
||||
# Use media group when downloading files
|
||||
group = "media";
|
||||
};
|
||||
|
||||
# Set-up media group
|
||||
users.groups.media = { };
|
||||
|
||||
my.services.nginx.virtualHosts = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue