diff options
author | pennae <github@quasiparticle.net> | 2021-12-05 22:56:22 +0100 |
---|---|---|
committer | pennae <github@quasiparticle.net> | 2021-12-09 01:42:24 +0100 |
commit | e67a646a925bc3cda86101a3f3afb81db3030ef5 (patch) | |
tree | fc91f2996187c22215a45c494a4fd21aba960db6 /nixos/modules/services/torrent/transmission.nix | |
parent | 1f960e7571d46bd13dd4b5865f115467e100ef7d (diff) | |
download | nixpkgs-e67a646a925bc3cda86101a3f3afb81db3030ef5.tar nixpkgs-e67a646a925bc3cda86101a3f3afb81db3030ef5.tar.gz nixpkgs-e67a646a925bc3cda86101a3f3afb81db3030ef5.tar.bz2 nixpkgs-e67a646a925bc3cda86101a3f3afb81db3030ef5.tar.lz nixpkgs-e67a646a925bc3cda86101a3f3afb81db3030ef5.tar.xz nixpkgs-e67a646a925bc3cda86101a3f3afb81db3030ef5.tar.zst nixpkgs-e67a646a925bc3cda86101a3f3afb81db3030ef5.zip |
treewide: add defaultText to remaining options
these are mostly options that use alias bindings, bindings to constants, or bindings to calculated values.
Diffstat (limited to 'nixos/modules/services/torrent/transmission.nix')
-rw-r--r-- | nixos/modules/services/torrent/transmission.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/services/torrent/transmission.nix b/nixos/modules/services/torrent/transmission.nix index a6ff467914a..b75507a3a1b 100644 --- a/nixos/modules/services/torrent/transmission.nix +++ b/nixos/modules/services/torrent/transmission.nix @@ -4,6 +4,7 @@ with lib; let cfg = config.services.transmission; + opt = options.services.transmission; inherit (config.environment) etc; apparmor = config.security.apparmor; rootDir = "/run/transmission"; @@ -47,11 +48,13 @@ in options.download-dir = mkOption { type = types.path; default = "${cfg.home}/${downloadsDir}"; + defaultText = literalExpression ''"''${config.${opt.home}}/${downloadsDir}"''; description = "Directory where to download torrents."; }; options.incomplete-dir = mkOption { type = types.path; default = "${cfg.home}/${incompleteDir}"; + defaultText = literalExpression ''"''${config.${opt.home}}/${incompleteDir}"''; description = '' When enabled with services.transmission.home @@ -147,6 +150,7 @@ in options.watch-dir = mkOption { type = types.path; default = "${cfg.home}/${watchDir}"; + defaultText = literalExpression ''"''${config.${opt.home}}/${watchDir}"''; description = "Watch a directory for torrent files and add them to transmission."; }; options.watch-dir-enabled = mkOption { |