forked from Fediversity/Fediversity
- move import to match module classes - manually import sources to resolve infinite recursion
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
let
|
|
# pulling this in manually over from module args resolves an infinite recursion
|
|
sources = import ../../npins;
|
|
in
|
|
{
|
|
_class = "nixos";
|
|
|
|
imports = [
|
|
"${sources.nixpkgs}/nixos/modules/profiles/qemu-guest.nix"
|
|
];
|
|
|
|
boot = {
|
|
initrd = {
|
|
availableKernelModules = [
|
|
"ata_piix"
|
|
"uhci_hcd"
|
|
"sd_mod"
|
|
"sr_mod"
|
|
];
|
|
kernelModules = [ "dm-snapshot" ];
|
|
};
|
|
};
|
|
|
|
disko.devices.disk.main = {
|
|
device = "/dev/sda";
|
|
type = "disk";
|
|
|
|
content = {
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
MBR = {
|
|
priority = 0;
|
|
size = "1M";
|
|
type = "EF02";
|
|
};
|
|
|
|
ESP = {
|
|
priority = 1;
|
|
size = "500M";
|
|
type = "EF00";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
};
|
|
};
|
|
|
|
root = {
|
|
priority = 2;
|
|
size = "100%";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|