feat(loki): fix disk-config.nix

This commit is contained in:
CronyAkatsuki 2025-05-18 21:32:45 +02:00
parent 5512e421ca
commit 1158d9005f

View file

@ -1,57 +1,50 @@
{ {lib, ...}: {
disko.devices = { disko.devices = {
disk = { disk.disk1 = {
main = { device = lib.mkDefault "/dev/vda";
type = "disk"; type = "disk";
device = "/dev/nvme0n1"; content = {
content = { type = "gpt";
type = "gpt"; partitions = {
partitions = { boot = {
ESP = { name = "boot";
size = "512M"; size = "1M";
type = "EF00"; type = "EF02";
content = { };
type = "filesystem"; esp = {
format = "vfat"; name = "ESP";
mountpoint = "/boot"; size = "500M";
mountOptions = ["umask=0077"]; type = "EF00";
}; content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
}; };
luks = { };
size = "100%"; root = {
content = { name = "root";
type = "luks"; size = "100%";
name = "crypted"; content = {
settings.allowDiscards = true; type = "lvm_pv";
passwordFile = "/tmp/secret.key"; vg = "pool";
content = { };
type = "btrfs"; };
extraArgs = ["-f"]; };
subvolumes = { };
"@" = { };
mountpoint = "/"; lvm_vg = {
mountOptions = [ pool = {
"compress=zstd" type = "lvm_vg";
"noatime" lvs = {
]; root = {
}; size = "100%FREE";
"@home" = { content = {
mountpoint = "/home"; type = "filesystem";
mountOptions = [ format = "ext4";
"compress=zstd" mountpoint = "/";
"noatime" mountOptions = [
]; "defaults"
}; ];
"@nix" = {
mountpoint = "/nix";
mountOptions = [
"compress=zstd"
"noatime"
];
};
};
};
};
}; };
}; };
}; };