Skip to content

Commit

Permalink
nixos/transmission: fix settings.umask to be of type str
Browse files Browse the repository at this point in the history
  • Loading branch information
diniamo committed Oct 20, 2024
1 parent 2a95839 commit adeb3c7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions nixos/modules/services/torrent/transmission.nix
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,13 @@ in
description = "Executable to be run at torrent completion.";
};
options.umask = mkOption {
type = types.int;
default = 2;
type = types.str;
default = "002";
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 0.
Bear in mind that the json markup language only accepts numbers in base 10,
so the standard umask(2) octal notation "022" is written in settings.json as 18.
may want to set this value to `000`.
'';
};
options.utp-enabled = mkOption {
Expand Down

0 comments on commit adeb3c7

Please sign in to comment.