2024-01-05 08:46:03 +08:00
|
|
|
{ lib
|
|
|
|
, modulesPath
|
|
|
|
, ... }: {
|
2024-01-07 22:01:31 +08:00
|
|
|
global = {
|
2024-01-08 18:18:53 +08:00
|
|
|
id = "62ea62fde6c04fb6b5c791892b6798c8";
|
2024-01-05 08:41:30 +08:00
|
|
|
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:41:30 +08:00
|
|
|
};
|
|
|
|
|
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") ];
|
|
|
|
|
2024-01-05 08:41:30 +08:00
|
|
|
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" ];
|
2024-02-15 17:20:28 +08:00
|
|
|
boot.initrd.systemd.emergencyAccess = true;
|
2024-01-05 08:41:30 +08:00
|
|
|
}
|