57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
|
|
{
|
||
|
|
disko.devices = {
|
||
|
|
disk = {
|
||
|
|
default = {
|
||
|
|
device = "/dev/sda";
|
||
|
|
type = "disk";
|
||
|
|
content = {
|
||
|
|
type = "gpt";
|
||
|
|
partitions = {
|
||
|
|
ESP = {
|
||
|
|
type = "EF00";
|
||
|
|
size = "500M";
|
||
|
|
content = {
|
||
|
|
type = "filesystem";
|
||
|
|
format = "vfat";
|
||
|
|
mountpoint = "/boot";
|
||
|
|
mountOptions = [ "umask=0077" ];
|
||
|
|
};
|
||
|
|
};
|
||
|
|
swap = {
|
||
|
|
size = "8G";
|
||
|
|
content = {
|
||
|
|
type = "swap";
|
||
|
|
};
|
||
|
|
};
|
||
|
|
root = {
|
||
|
|
size = "100%"
|
||
|
|
content = {
|
||
|
|
type = "filesystem";
|
||
|
|
format = "ext4";
|
||
|
|
mountpoint = "/";
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
other = {
|
||
|
|
device = "/dev/sdb";
|
||
|
|
type = "disk";
|
||
|
|
content = {
|
||
|
|
type = "gpt";
|
||
|
|
partitions = {
|
||
|
|
default = {
|
||
|
|
size = "100%";
|
||
|
|
content = {
|
||
|
|
type = "filesystem";
|
||
|
|
format = "ext4";
|
||
|
|
mountpoint = "/home/fox/Disk";
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|