mpd: set default musicDirectory

This commit is contained in:
Charlie Root 2024-10-23 11:23:41 +02:00
commit 30cc56f26b
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw
2 changed files with 7 additions and 2 deletions

View file

@ -70,7 +70,6 @@
media.mpd = { media.mpd = {
enable = true; enable = true;
musicDirectory = "/home/${config.modules.other.system.username}/cloud/media/Music";
}; };
}; };

View file

@ -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";
}; };
}; };
}; };