pointfichiers/hosts/Zephyrus/disko-config.nix

85 lines
2 KiB
Nix
Raw Normal View History

2024-09-20 13:36:09 +02:00
{
disko.devices = {
2024-09-20 14:21:57 +02:00
disk = {
2024-09-20 14:19:38 +02:00
samsung980 = {
2024-09-20 13:36:09 +02:00
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";
extraOpenArgs = [];
settings = {
# if you want to use the key for interactive login be sure there is no trailing newline
# for example use `echo -n "password" > /tmp/secret.key`
keyFile = "/tmp/secret.key";
allowDiscards = true;
};
additionalKeyFiles = [];
content = {
type = "lvm_pv";
2024-09-20 14:33:25 +02:00
vg = "zephyrus_vg";
2024-09-20 13:36:09 +02:00
};
};
};
};
};
};
};
lvm_vg = {
2024-09-20 14:33:25 +02:00
zephyrus_vg = {
2024-09-20 13:36:09 +02:00
type = "lvm_vg";
lvs = {
swap = {
size = "16G";
content = {
type = "swap";
resumeDevice = true;
};
};
2024-09-20 13:36:09 +02:00
root = {
size = "64G";
2024-09-20 13:36:09 +02:00
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
mountOptions = [
"defaults"
];
};
};
var = {
size = "32G";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/var";
};
};
2024-09-20 13:36:09 +02:00
home = {
size = "100%FREE";
2024-09-20 13:36:09 +02:00
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/home";
};
};
};
};
};
};
}