mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-06 11:56:33 +01:00
43 lines
968 B
Nix
43 lines
968 B
Nix
|
{...}:
|
||
|
{
|
||
|
disko.devices = {
|
||
|
disk = {
|
||
|
main = {
|
||
|
device = "/dev/nvme0n1";
|
||
|
type = "disk";
|
||
|
content = {
|
||
|
type = "gpt";
|
||
|
partitions = {
|
||
|
ESP = {
|
||
|
end = "500M";
|
||
|
type = "EF00";
|
||
|
content = {
|
||
|
type = "filesystem";
|
||
|
format = "vfat";
|
||
|
mountpoint = "/boot";
|
||
|
mountOptions = [ "umask=0077" ];
|
||
|
};
|
||
|
};
|
||
|
root = {
|
||
|
name = "root";
|
||
|
end = "-0";
|
||
|
content = {
|
||
|
type = "luks";
|
||
|
name = "crypto";
|
||
|
settings = {
|
||
|
allowDiscards = true;
|
||
|
};
|
||
|
content = {
|
||
|
type = "filesystem";
|
||
|
format = "bcachefs";
|
||
|
mountpoint = "/";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|