From 53943b006f4a493fdeb83f4f8d6b0ec4895dfbc3 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 17 Nov 2025 23:40:36 +0200 Subject: [PATCH] nixos/mpd: nixfmt --- nixos/modules/services/audio/mpd.nix | 94 ++++++++++++++-------------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/nixos/modules/services/audio/mpd.nix b/nixos/modules/services/audio/mpd.nix index af6961692ee0..1a58732ca944 100644 --- a/nixos/modules/services/audio/mpd.nix +++ b/nixos/modules/services/audio/mpd.nix @@ -173,57 +173,57 @@ in (listOf (attrsOf atomType)) ]); options = { - music_directory = lib.mkOption { - type = with lib.types; either path (strMatching "([a-z]+)://.+"); - default = "${cfg.dataDir}/music"; - defaultText = lib.literalExpression ''"''${dataDir}/music"''; - description = '' - The directory or URI where MPD reads music from. If left - as the default value this directory will automatically be created before - the MPD server starts, otherwise the sysadmin is responsible for ensuring - the directory exists with appropriate ownership and permissions. - ''; - }; + music_directory = lib.mkOption { + type = with lib.types; either path (strMatching "([a-z]+)://.+"); + default = "${cfg.dataDir}/music"; + defaultText = lib.literalExpression ''"''${dataDir}/music"''; + description = '' + The directory or URI where MPD reads music from. If left + as the default value this directory will automatically be created before + the MPD server starts, otherwise the sysadmin is responsible for ensuring + the directory exists with appropriate ownership and permissions. + ''; + }; - playlist_directory = lib.mkOption { - type = lib.types.path; - default = "${cfg.dataDir}/playlists"; - defaultText = lib.literalExpression ''"''${dataDir}/playlists"''; - description = '' - The directory where MPD stores playlists. If left as the default value - this directory will automatically be created before the MPD server starts, - otherwise the sysadmin is responsible for ensuring the directory exists - with appropriate ownership and permissions. - ''; - }; + playlist_directory = lib.mkOption { + type = lib.types.path; + default = "${cfg.dataDir}/playlists"; + defaultText = lib.literalExpression ''"''${dataDir}/playlists"''; + description = '' + The directory where MPD stores playlists. If left as the default value + this directory will automatically be created before the MPD server starts, + otherwise the sysadmin is responsible for ensuring the directory exists + with appropriate ownership and permissions. + ''; + }; - bind_to_address = lib.mkOption { - type = lib.types.str; - default = "127.0.0.1"; - example = "any"; - description = '' - The address for the daemon to listen on. - Use `any` to listen on all addresses. - ''; - }; + bind_to_address = lib.mkOption { + type = lib.types.str; + default = "127.0.0.1"; + example = "any"; + description = '' + The address for the daemon to listen on. + Use `any` to listen on all addresses. + ''; + }; - port = lib.mkOption { - type = lib.types.port; - default = 6600; - description = '' - This setting is the TCP port that is desired for the daemon to get assigned - to. - ''; - }; + port = lib.mkOption { + type = lib.types.port; + default = 6600; + description = '' + This setting is the TCP port that is desired for the daemon to get assigned + to. + ''; + }; - db_file = lib.mkOption { - type = lib.types.path; - default = "${cfg.dataDir}/tag_cache"; - defaultText = lib.literalExpression ''"''${dataDir}/tag_cache"''; - description = '' - The path to MPD's database. - ''; - }; + db_file = lib.mkOption { + type = lib.types.path; + default = "${cfg.dataDir}/tag_cache"; + defaultText = lib.literalExpression ''"''${dataDir}/tag_cache"''; + description = '' + The path to MPD's database. + ''; + }; }; }; default = { };