mpd: set default musicDirectory
This commit is contained in:
parent
e1bb4993ca
commit
30cc56f26b
2 changed files with 7 additions and 2 deletions
|
@ -70,7 +70,6 @@
|
||||||
|
|
||||||
media.mpd = {
|
media.mpd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
musicDirectory = "/home/${config.modules.other.system.username}/cloud/media/Music";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
{lib, ...}: let
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
inherit (lib.options) mkOption mkEnableOption;
|
inherit (lib.options) mkOption mkEnableOption;
|
||||||
inherit (lib) types;
|
inherit (lib) types;
|
||||||
|
inherit (config.meta.mainUser) username;
|
||||||
in {
|
in {
|
||||||
options.modules.usrEnv.services = {
|
options.modules.usrEnv.services = {
|
||||||
locate.enable = mkEnableOption "Locate service";
|
locate.enable = mkEnableOption "Locate service";
|
||||||
|
@ -10,6 +15,7 @@ in {
|
||||||
musicDirectory = mkOption {
|
musicDirectory = mkOption {
|
||||||
description = "music directory for mpd";
|
description = "music directory for mpd";
|
||||||
type = types.str;
|
type = types.str;
|
||||||
|
default = "/home/${username}/cloud/media/Music";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue