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

@ -1,6 +1,11 @@
{lib, ...}: let
{
config,
lib,
...
}: let
inherit (lib.options) mkOption mkEnableOption;
inherit (lib) types;
inherit (config.meta.mainUser) username;
in {
options.modules.usrEnv.services = {
locate.enable = mkEnableOption "Locate service";
@ -10,6 +15,7 @@ in {
musicDirectory = mkOption {
description = "music directory for mpd";
type = types.str;
default = "/home/${username}/cloud/media/Music";
};
};
};