This commit is contained in:
2026-03-04 17:54:09 +01:00
parent e6927744f6
commit 9f39bbdd04

View File

@@ -1,14 +1,42 @@
{ ... }: { { ... }: {
flake.nixosModules.disks-sys-singledisk = { flake.nixosModules.disks-sys-singledisk = {
fileSystems."/" = { disko.devices = {
device = "/dev/disk/by-label/root"; disk = {
fsType = "xfs"; main = {
type = "disk";
device = "/dev/nvme0n1";
content = {
type = "gpt";
partitions = {
ESP = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "fmask=0077" "dmask=0077" ];
extraArgs = [ "-n" "boot" ];
};
};
luks = {
size = "100%";
content = {
type = "luks";
name = "cryptroot";
settings.allowDiscards = true;
content = {
type = "filesystem";
format = "xfs";
mountpoint = "/";
extraArgs = [ "-L" "root" ];
};
};
};
};
};
};
}; };
fileSystems."/boot" = {
device = "/dev/disk/by-label/boot";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
}; };
swapDevices = [{ swapDevices = [{