diff options
author | lucasew <lucas59356@gmail.com> | 2024-01-05 16:24:24 -0300 |
---|---|---|
committer | lucasew <lucas59356@gmail.com> | 2024-01-05 16:24:24 -0300 |
commit | 82723d0494476f18207c49a1303c417cf8c7f47c (patch) | |
tree | e4f271bd7edaeaefffba87614955605c36581d22 /nixos/modules/services | |
parent | e03da1011feb6ed955d3888edd076156d7125a3a (diff) | |
download | nixlib-82723d0494476f18207c49a1303c417cf8c7f47c.tar nixlib-82723d0494476f18207c49a1303c417cf8c7f47c.tar.gz nixlib-82723d0494476f18207c49a1303c417cf8c7f47c.tar.bz2 nixlib-82723d0494476f18207c49a1303c417cf8c7f47c.tar.lz nixlib-82723d0494476f18207c49a1303c417cf8c7f47c.tar.xz nixlib-82723d0494476f18207c49a1303c417cf8c7f47c.tar.zst nixlib-82723d0494476f18207c49a1303c417cf8c7f47c.zip |
nixos/transmission: fix webui if no custom webui is specified
Signed-off-by: lucasew <lucas59356@gmail.com>
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/torrent/transmission.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/torrent/transmission.nix b/nixos/modules/services/torrent/transmission.nix index 497297ba693a..5dd02eb33163 100644 --- a/nixos/modules/services/torrent/transmission.nix +++ b/nixos/modules/services/torrent/transmission.nix @@ -294,7 +294,7 @@ in requires = optional apparmor.enable "apparmor.service"; wantedBy = [ "multi-user.target" ]; environment.CURL_CA_BUNDLE = etc."ssl/certs/ca-certificates.crt".source; - environment.TRANSMISSION_WEB_HOME = lib.optionalString (cfg.webHome != null) cfg.webHome; + environment.TRANSMISSION_WEB_HOME = lib.mkIf (cfg.webHome != null) cfg.webHome; serviceConfig = { # Use "+" because credentialsFile may not be accessible to User= or Group=. |