nix-config/hosts/lenar/disko.nix

61 lines
1.6 KiB
Nix
Raw Normal View History

2024-09-22 21:36:02 +02:00
{
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/nvme0n1";
content = {
type = "gpt";
partitions = {
ESP = {
name = "ESP";
2025-03-10 22:27:20 +01:00
size = "1G";
2024-09-22 21:36:02 +02:00
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
2025-03-10 22:27:20 +01:00
luks = {
2024-09-22 21:36:02 +02:00
size = "100%";
content = {
2025-03-10 22:27:20 +01:00
type = "luks";
name = "crypted";
passwordFile = "/tmp/password.tmp";
content = {
type = "btrfs";
extraArgs = [ "-f" ];
subvolumes = {
"/rootfs" = {
mountOptions = [
"compress=zstd"
"noatime"
];
mountpoint = "/";
};
"/home" = {
mountOptions = [
"compress=zstd"
"noatime"
];
mountpoint = "/home";
};
"/nix" = {
mountOptions = [
"compress=zstd"
"noatime"
];
mountpoint = "/nix";
};
2024-09-22 21:36:02 +02:00
};
};
};
};
};
};
};
};
};
2024-09-23 20:56:13 +02:00
}