Skip to content

Commit

Permalink
nixos/transmission: fix the type of settings.umask
Browse files Browse the repository at this point in the history
  • Loading branch information
diniamo committed Oct 29, 2024
1 parent 76fb46f commit 94a4001
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions nixos/modules/services/torrent/transmission.nix
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,17 @@ in
description = "Executable to be run at torrent completion.";
};
umask = mkOption {
type = types.str;
default = "022";
type = types.either types.int types.str;
default = 18;
description = ''
Sets transmission's file mode creation mask.
See the umask(2) manpage for more information.
Users who want their saved torrents to be world-writable
may want to set this value to `000`.
may want to set this value to 0/`"000"`.
Keep in mind, that if you are using Transmission 3, this has to
be passed as a base 10 integer, whereas Transmission 4 takes
an octal number in a string instead.
'';
};
utp-enabled = mkOption {
Expand Down

0 comments on commit 94a4001

Please sign in to comment.