about summary refs log tree commit diff
path: root/nixos/modules/services
diff options
context:
space:
mode:
authorThiago Kenji Okada <thiagokokada@gmail.com>2024-01-06 14:16:49 +0000
committerGitHub <noreply@github.com>2024-01-06 14:16:49 +0000
commita0d94113e8dffc587f62355ea5a9c5754d1ba1b3 (patch)
treefb2099e1199cf63de4a23cf66d8c0ee8616fff9d /nixos/modules/services
parentf36e11d2599a43910b76c7e6bce92f8631dd9e7e (diff)
parent82723d0494476f18207c49a1303c417cf8c7f47c (diff)
downloadnixlib-a0d94113e8dffc587f62355ea5a9c5754d1ba1b3.tar
nixlib-a0d94113e8dffc587f62355ea5a9c5754d1ba1b3.tar.gz
nixlib-a0d94113e8dffc587f62355ea5a9c5754d1ba1b3.tar.bz2
nixlib-a0d94113e8dffc587f62355ea5a9c5754d1ba1b3.tar.lz
nixlib-a0d94113e8dffc587f62355ea5a9c5754d1ba1b3.tar.xz
nixlib-a0d94113e8dffc587f62355ea5a9c5754d1ba1b3.tar.zst
nixlib-a0d94113e8dffc587f62355ea5a9c5754d1ba1b3.zip
Merge pull request #278975 from lucasew/fix/transmission-web
nixos/transmission: fix webui if no custom webui is specified
Diffstat (limited to 'nixos/modules/services')
-rw-r--r--nixos/modules/services/torrent/transmission.nix2
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=.