nixos/mpd: allow setting null db_file (#485884)
This commit is contained in:
@@ -26,7 +26,9 @@ let
|
||||
"\"" + (toString v) + "\""
|
||||
)
|
||||
) a;
|
||||
nonBlockSettings = lib.filterAttrs (n: v: !(builtins.isAttrs v || builtins.isList v)) cfg.settings;
|
||||
nonBlockSettings = lib.filterAttrs (
|
||||
n: v: !(builtins.isAttrs v || builtins.isList v || isNull v)
|
||||
) cfg.settings;
|
||||
pureBlockSettings = removeAttrs cfg.settings (builtins.attrNames nonBlockSettings);
|
||||
blocks =
|
||||
pureBlockSettings
|
||||
@@ -221,7 +223,7 @@ in
|
||||
};
|
||||
|
||||
db_file = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
type = lib.types.nullOr lib.types.path;
|
||||
default = "${cfg.dataDir}/tag_cache";
|
||||
defaultText = lib.literalExpression ''"''${dataDir}/tag_cache"'';
|
||||
description = ''
|
||||
|
||||
Reference in New Issue
Block a user