hi guys, why can’t I boot into the system and how can I fix it🙃
disko.devices = {
disk = {
main = {
type = “disk”;
device = “/dev/nvme0n1”;
content = {
type = “gpt”;
partitions = {
esp = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [
"defaults"
"umask=0077"
];
};
};
luks = {
size = "100%";
content = {
type = "luks";
name = "crypted";
content = {
type = "lvm_pv";
vg = "pool";
};
};
};
};
};
};
};
lvm_vg = {
pool = {
type = “lvm_vg”;
lvs = {
root = {
size = "100%FREE";
content = {
type = "btrfs";
extraArgs = ["-f"];
subvolumes = {
"/root" = {
mountpoint = "/";
};
"/persist" = {
mountpoint = "/persist";
mountOptions = [
"compress=zstd"
"subvol=persist"
"noatime"
];
};
"/nix" = {
mountpoint = "/nix";
mountOptions = [
"compress=zstd"
"subvol=nix"
"noatime"
];
};
};
};
};
};
};
};
I applied this config while on livecd and entered nixos-generate-config --root /mnt && nixos-install