diff --git a/lib/types/disk.nix b/lib/types/disk.nix index 120cdc3..7d77062 100644 --- a/lib/types/disk.nix +++ b/lib/types/disk.nix @@ -3,7 +3,7 @@ options = { name = lib.mkOption { type = lib.types.str; - default = config._module.args.name; + default = lib.replaceStrings ["/"] ["_"] config._module.args.name; description = "Device name"; }; type = lib.mkOption {