diff --git a/profiles/nixos/disks.nix b/profiles/nixos/disks.nix index a61e859..95d3d22 100644 --- a/profiles/nixos/disks.nix +++ b/profiles/nixos/disks.nix @@ -1,32 +1,12 @@ _: { - disko.devices = { - disk = { - nvme0n1 = { - device = "/dev/%DISK%"; - type = "disk"; - content = { - type = "gpt"; - partitions = { - ESP = { - type = "EF00"; - size = "100M"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - }; - }; - root = { - size = "100%"; - content = { - type = "filesystem"; - format = "ext4"; - mountpoint = "/"; - }; - }; - }; - }; - }; - }; + fileSystems."/" = { + device = "/dev/disk/by-label/NIXROOT"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-label/NIXBOOT"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; }; }