mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 19:49:45 +01:00
mpd: allow path literal values in options
This allows specifying, for example, the music directory using path literals without causing the directory to be copied to the Nix store. Suggested-by: Silvan Mosberger <infinisil@icloud.com>
This commit is contained in:
parent
e347e932af
commit
b0544c8cde
1 changed files with 3 additions and 0 deletions
|
@ -45,6 +45,7 @@ in {
|
||||||
type = types.path;
|
type = types.path;
|
||||||
default = "${config.home.homeDirectory}/music";
|
default = "${config.home.homeDirectory}/music";
|
||||||
defaultText = "$HOME/music";
|
defaultText = "$HOME/music";
|
||||||
|
apply = toString; # Prevent copies to Nix store.
|
||||||
description = ''
|
description = ''
|
||||||
The directory where mpd reads music from.
|
The directory where mpd reads music from.
|
||||||
'';
|
'';
|
||||||
|
@ -54,6 +55,7 @@ in {
|
||||||
type = types.path;
|
type = types.path;
|
||||||
default = "${cfg.dataDir}/playlists";
|
default = "${cfg.dataDir}/playlists";
|
||||||
defaultText = ''''${dataDir}/playlists'';
|
defaultText = ''''${dataDir}/playlists'';
|
||||||
|
apply = toString; # Prevent copies to Nix store.
|
||||||
description = ''
|
description = ''
|
||||||
The directory where mpd stores playlists.
|
The directory where mpd stores playlists.
|
||||||
'';
|
'';
|
||||||
|
@ -78,6 +80,7 @@ in {
|
||||||
type = types.path;
|
type = types.path;
|
||||||
default = "${config.xdg.dataHome}/${name}";
|
default = "${config.xdg.dataHome}/${name}";
|
||||||
defaultText = "$XDG_DATA_HOME/mpd";
|
defaultText = "$XDG_DATA_HOME/mpd";
|
||||||
|
apply = toString; # Prevent copies to Nix store.
|
||||||
description = ''
|
description = ''
|
||||||
The directory where MPD stores its state, tag cache,
|
The directory where MPD stores its state, tag cache,
|
||||||
playlists etc.
|
playlists etc.
|
||||||
|
|
Loading…
Reference in a new issue