nichts/modules/options/usrEnv/services/default.nix

24 lines
526 B
Nix
Raw Normal View History

2024-10-23 11:23:41 +02:00
{
config,
lib,
...
}: let
2024-07-20 13:56:02 +02:00
inherit (lib.options) mkOption mkEnableOption;
inherit (lib) types;
2024-10-23 11:23:41 +02:00
inherit (config.meta.mainUser) username;
2024-07-20 13:56:02 +02:00
in {
2024-07-23 00:00:26 +02:00
options.modules.usrEnv.services = {
locate.enable = mkEnableOption "Locate service";
media = {
mpd = {
enable = mkEnableOption "mpd service";
musicDirectory = mkOption {
description = "music directory for mpd";
type = types.str;
2024-10-23 11:23:41 +02:00
default = "/home/${username}/cloud/media/Music";
2024-07-23 00:00:26 +02:00
};
2024-07-20 13:56:02 +02:00
};
};
};
}