mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
Fixes #130 This should fix pretty much all cases where spaces or other special characters would break disko due to improper quoting. I searched for all instances of '.label', '.device' and '.name', so I believe I caught whatever I could. In some cases I changed single quotes to double quotes for consistency. I know we don't usually fix bugs in the legacy table type, but it was so easy I couldn't resist.
49 lines
1.2 KiB
Nix
49 lines
1.2 KiB
Nix
{
|
|
disko.devices = {
|
|
disk = {
|
|
vdb = {
|
|
device = "/dev/disk/by-id/some-disk-id";
|
|
type = "disk";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
ESP = {
|
|
type = "EF00";
|
|
size = "100M";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
};
|
|
};
|
|
"name with spaces" = {
|
|
size = "100M";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/name with spaces";
|
|
};
|
|
};
|
|
"name^with\\some@special#chars" = {
|
|
size = "100M";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/name^with\\some@special#chars";
|
|
};
|
|
};
|
|
root = {
|
|
size = "100%";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|