nixos/spec/incinerator/default.nix

26 lines
774 B
Nix
Raw Normal View History

2024-01-05 08:46:03 +08:00
{ lib
, modulesPath
, ... }: {
2024-01-07 22:01:31 +08:00
global = {
id = "62ea62fde6c04fb6b5c791892b6798c8";
auth.openssh.enable = true;
libvirt.enable = false;
2024-01-11 15:57:39 +08:00
fs.type = "ext4";
fs.store = "7c3459d2-c046-4ef6-8bc6-a8cf97bcade9";
2024-01-11 14:03:06 +08:00
oci.enable = true;
};
2024-01-05 08:44:26 +08:00
imports = lib.pipe ./. [
builtins.readDir
(lib.filterAttrs (n: ty: ty == "regular" && n != "default.nix"))
(lib.mapAttrsToList (n: _: ./${n}))
] ++ [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.kernelParams = [ "console=ttyS0,115200n8" ];
boot.initrd.systemd.emergencyAccess = true;
}