diff options
author | pennae <github@quasiparticle.net> | 2021-12-05 21:58:27 +0100 |
---|---|---|
committer | pennae <github@quasiparticle.net> | 2021-12-09 01:21:04 +0100 |
commit | e72435e6125f51a5f331080ed1862bdc86d36769 (patch) | |
tree | 69f8c218e9329deb848e5c21b842e007ccae6da4 /nixos/modules/services/misc/subsonic.nix | |
parent | ed673a69dbf5f9be67183621eb0f5c1759d48299 (diff) | |
download | nixpkgs-e72435e6125f51a5f331080ed1862bdc86d36769.tar nixpkgs-e72435e6125f51a5f331080ed1862bdc86d36769.tar.gz nixpkgs-e72435e6125f51a5f331080ed1862bdc86d36769.tar.bz2 nixpkgs-e72435e6125f51a5f331080ed1862bdc86d36769.tar.lz nixpkgs-e72435e6125f51a5f331080ed1862bdc86d36769.tar.xz nixpkgs-e72435e6125f51a5f331080ed1862bdc86d36769.tar.zst nixpkgs-e72435e6125f51a5f331080ed1862bdc86d36769.zip |
treewide: make option descriptions constants
escape interpolations in descriptions where possible, replace them with sufficiently descriptive text elsewhere. also expand cfg.* paths in descriptions.
Diffstat (limited to 'nixos/modules/services/misc/subsonic.nix')
-rw-r--r-- | nixos/modules/services/misc/subsonic.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/nixos/modules/services/misc/subsonic.nix b/nixos/modules/services/misc/subsonic.nix index 98b85918ad1..2dda8970dd3 100644 --- a/nixos/modules/services/misc/subsonic.nix +++ b/nixos/modules/services/misc/subsonic.nix @@ -1,8 +1,11 @@ -{ config, lib, pkgs, ... }: +{ config, lib, options, pkgs, ... }: with lib; -let cfg = config.services.subsonic; in { +let + cfg = config.services.subsonic; + opt = options.services.subsonic; +in { options = { services.subsonic = { enable = mkEnableOption "Subsonic daemon"; @@ -97,7 +100,7 @@ let cfg = config.services.subsonic; in { description = '' List of paths to transcoder executables that should be accessible from Subsonic. Symlinks will be created to each executable inside - ${cfg.home}/transcoders. + ''${config.${opt.home}}/transcoders. ''; }; }; |