pointfichiers/hosts/Zephyrus/disko-config.nix
2024-09-20 16:54:41 +02:00

80 lines
1.8 KiB
Nix

{
disko.devices = {
disk = {
samsung980 = {
device = "/dev/nvme0n1";
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
type = "EF00";
size = "500M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
luks = {
size = "100%";
content = {
type = "luks";
name = "crypted";
settings = {
allowDiscards = true;
# askPassword = true;
};
content = {
type = "lvm_pv";
vg = "zephyrus_vg";
};
};
};
};
};
};
};
lvm_vg = {
zephyrus_vg = {
type = "lvm_vg";
lvs = {
swap = {
size = "16G";
content = {
type = "swap";
resumeDevice = true;
};
};
root = {
size = "64G";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
mountOptions = [
"defaults"
];
};
};
var = {
size = "32G";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/var";
};
};
home = {
size = "100%FREE";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/home";
};
};
};
};
};
};
}