2024-11-07 19:47:40 +00:00
|
|
|
{lib, ...}: {
|
|
|
|
config = {
|
|
|
|
pim = {
|
|
|
|
cinnamon.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
facter.reportPath = ./facter.json;
|
|
|
|
|
|
|
|
networking.hostName = "gamepc";
|
|
|
|
|
2024-11-09 09:29:18 +00:00
|
|
|
# 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"];
|
|
|
|
}
|
|
|
|
];
|
2024-11-07 19:47:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
disko.devices.disk = lib.genAttrs ["0" "1"] (name: {
|
|
|
|
type = "disk";
|
|
|
|
device = "/dev/nvme${name}n1";
|
|
|
|
content = {
|
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
ESP = {
|
|
|
|
type = "EF00";
|
2024-11-09 09:29:18 +00:00
|
|
|
size = "500M";
|
2024-11-07 19:47:40 +00:00
|
|
|
content = {
|
2024-11-09 09:29:18 +00:00
|
|
|
type = "filesystem";
|
|
|
|
format = "vfat";
|
|
|
|
mountpoint = "/boot${name}";
|
|
|
|
mountOptions = ["umask=0077"];
|
2024-11-07 19:47:40 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
mdadm = {
|
|
|
|
size = "100%";
|
|
|
|
content = {
|
|
|
|
type = "mdraid";
|
|
|
|
name = "raid0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
disko.devices.mdadm = {
|
2024-11-09 09:29:18 +00:00
|
|
|
# boot = {
|
|
|
|
# type = "mdadm";
|
|
|
|
# level = 1;
|
|
|
|
# metadata = "1.0";
|
|
|
|
# content = {
|
|
|
|
# type = "filesystem";
|
|
|
|
# format = "vfat";
|
|
|
|
# mountpoint = "/boot";
|
|
|
|
# };
|
|
|
|
# };
|
2024-11-07 19:47:40 +00:00
|
|
|
raid0 = {
|
|
|
|
type = "mdadm";
|
|
|
|
level = 0;
|
|
|
|
content = {
|
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
primary = {
|
|
|
|
end = "-1G";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "ext4";
|
|
|
|
mountpoint = "/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
swap = {
|
|
|
|
size = "100%";
|
|
|
|
content = {
|
|
|
|
type = "swap";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|