From 774ce7df25538bd73a8d456e0828907fa6b62572 Mon Sep 17 00:00:00 2001 From: lassulus Date: Tue, 18 Jul 2023 00:10:35 +0200 Subject: [PATCH] types disk: cleanup name --- lib/types/disk.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {