Set umask of transmission
This commit is contained in:
@@ -8,7 +8,6 @@ with lib; let
|
|||||||
cfg = config.util-nixarr.services.cross-seed;
|
cfg = config.util-nixarr.services.cross-seed;
|
||||||
settingsFormat = pkgs.formats.json {};
|
settingsFormat = pkgs.formats.json {};
|
||||||
settingsFile = settingsFormat.generate "settings.json" cfg.settings;
|
settingsFile = settingsFormat.generate "settings.json" cfg.settings;
|
||||||
cross-seedPkg = pkgs.callPackage ../../../pkgs/cross-seed {};
|
|
||||||
configJs = pkgs.writeText "config.js" ''
|
configJs = pkgs.writeText "config.js" ''
|
||||||
// Loads a json.config
|
// Loads a json.config
|
||||||
"use strict";
|
"use strict";
|
||||||
@@ -115,7 +114,7 @@ in {
|
|||||||
Type = "simple";
|
Type = "simple";
|
||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
Group = cfg.group;
|
Group = cfg.group;
|
||||||
ExecStart = "${cross-seedPkg}/bin/cross-seed daemon";
|
ExecStart = "${pkgs.cross-seed}/bin/cross-seed daemon";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -371,6 +371,8 @@ in {
|
|||||||
watch-dir-enabled = true;
|
watch-dir-enabled = true;
|
||||||
watch-dir = "${downloadDir}/.watch";
|
watch-dir = "${downloadDir}/.watch";
|
||||||
|
|
||||||
|
umask = "002";
|
||||||
|
|
||||||
rpc-bind-address =
|
rpc-bind-address =
|
||||||
if cfg.vpn.enable
|
if cfg.vpn.enable
|
||||||
then "192.168.15.1"
|
then "192.168.15.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user