{lib, ...}: { config = { pim = { cinnamon.enable = true; }; facter.reportPath = ./facter.json; networking.hostName = "gamepc"; # boot = { # loader = { # systemd-boot.enable = true; # efi.canTouchEfiVariables = true; # }; # }; boot.loader.grub = { enable = true; efiSupport = true; efiInstallAsRemovable = true; mirroredBoots = [ { path = "/boot0"; devices = ["nodev"]; } { path = "/boot1"; devices = ["nodev"]; } ]; }; disko.devices.disk = lib.genAttrs ["0" "1"] (name: { type = "disk"; device = "/dev/nvme${name}n1"; content = { type = "gpt"; partitions = { ESP = { type = "EF00"; size = "500M"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot${name}"; mountOptions = ["umask=0077"]; }; }; mdadm = { size = "100%"; content = { type = "mdraid"; name = "raid0"; }; }; }; }; }); disko.devices.mdadm = { # boot = { # type = "mdadm"; # level = 1; # metadata = "1.0"; # content = { # type = "filesystem"; # format = "vfat"; # mountpoint = "/boot"; # }; # }; raid0 = { type = "mdadm"; level = 0; content = { type = "gpt"; partitions = { primary = { end = "-1G"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/"; }; }; swap = { size = "100%"; content = { type = "swap"; }; }; }; }; }; }; }; }