summary refs log tree commit diff
path: root/nixos/modules/services/torrent/transmission.nix
diff options
context:
space:
mode:
authorFranz Pletz <fpletz@fnordicwalking.de>2017-04-11 18:08:51 +0200
committerFranz Pletz <fpletz@fnordicwalking.de>2017-04-11 18:18:53 +0200
commit3ab45f4b369c9c741b55ddedeaac4c797dc61c04 (patch)
tree3c5e330622e42066e50ab20a6c58b9251addf863 /nixos/modules/services/torrent/transmission.nix
parent54fff9ec1a9e7425926eadffada0268351536926 (diff)
downloadnixpkgs-3ab45f4b369c9c741b55ddedeaac4c797dc61c04.tar
nixpkgs-3ab45f4b369c9c741b55ddedeaac4c797dc61c04.tar.gz
nixpkgs-3ab45f4b369c9c741b55ddedeaac4c797dc61c04.tar.bz2
nixpkgs-3ab45f4b369c9c741b55ddedeaac4c797dc61c04.tar.lz
nixpkgs-3ab45f4b369c9c741b55ddedeaac4c797dc61c04.tar.xz
nixpkgs-3ab45f4b369c9c741b55ddedeaac4c797dc61c04.tar.zst
nixpkgs-3ab45f4b369c9c741b55ddedeaac4c797dc61c04.zip
treewide: use boolToString function
Diffstat (limited to 'nixos/modules/services/torrent/transmission.nix')
-rw-r--r--nixos/modules/services/torrent/transmission.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/modules/services/torrent/transmission.nix b/nixos/modules/services/torrent/transmission.nix
index 5b2e4ca1606..1f319df794b 100644
--- a/nixos/modules/services/torrent/transmission.nix
+++ b/nixos/modules/services/torrent/transmission.nix
@@ -15,8 +15,7 @@ let
 
   # Strings must be quoted, ints and bools must not (for settings.json).
   toOption = x:
-    if x == true then "true"
-    else if x == false then "false"
+    if isBool x then boolToString x
     else if isInt x then toString x
     else toString ''"${x}"'';