diff options
author | volth <volth@volth.com> | 2018-07-20 17:56:59 +0000 |
---|---|---|
committer | volth <volth@volth.com> | 2018-07-20 18:48:37 +0000 |
commit | 87f5930c3fb2c852f5243278b7a9da8e117d95e4 (patch) | |
tree | d76aa79bc394e820305c4eebbd250c89f6992eb9 /nixos/modules/services/torrent | |
parent | a7e5927b4739c6e6427fc993f077cd3eb5433db7 (diff) | |
download | nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar.gz nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar.bz2 nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar.lz nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar.xz nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.tar.zst nixlib-87f5930c3fb2c852f5243278b7a9da8e117d95e4.zip |
[bot]: remove unreferenced code
Diffstat (limited to 'nixos/modules/services/torrent')
-rw-r--r-- | nixos/modules/services/torrent/transmission.nix | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/nixos/modules/services/torrent/transmission.nix b/nixos/modules/services/torrent/transmission.nix index bf4fb76d0c0c..96413d2dd563 100644 --- a/nixos/modules/services/torrent/transmission.nix +++ b/nixos/modules/services/torrent/transmission.nix @@ -13,12 +13,6 @@ let settingsDir = "${homeDir}/.config/transmission-daemon"; settingsFile = pkgs.writeText "settings.json" (builtins.toJSON fullSettings); - # Strings must be quoted, ints and bools must not (for settings.json). - toOption = x: - if isBool x then boolToString x - else if isInt x then toString x - else toString ''"${x}"''; - # for users in group "transmission" to have access to torrents fullSettings = { umask = 2; download-dir = downloadDir; incomplete-dir = incompleteDir; } // cfg.settings; |