mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
transmission: Add apparmor service dependency
This commit is contained in:
parent
2e61811284
commit
0a0beadecd
@ -104,8 +104,10 @@ in
|
||||
|
||||
systemd.services.transmission = {
|
||||
description = "Transmission BitTorrent Daemon";
|
||||
after = [ "network.target" ];
|
||||
after = [ "network.target" ] ++ optional (config.security.apparmor.enable && cfg.apparmor) "apparmor.service";
|
||||
requires = mkIf (config.security.apparmor.enable && cfg.apparmor) [ "apparmor.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
# 1) Only the "transmission" user and group have access to torrents.
|
||||
# 2) Optionally update/force specific fields into the configuration file.
|
||||
serviceConfig.ExecStartPre =
|
||||
|
Loading…
Reference in New Issue
Block a user