feat(hardware): Add kernelParams for all machines so that virtualisation is possible

This commit is contained in:
Tom Hubrecht 2023-12-11 01:05:05 +01:00
parent 2e4f7d98c4
commit 45edfee048
2 changed files with 6 additions and 7 deletions

View file

@ -3,13 +3,6 @@
let url = "https://git.dgnum.eu";
in {
boot.kernelParams = [
"cgroup_enable=cpu"
"cgroup_enable=cpuset"
"cgroup_enable=memory"
"cgroup_memory=1"
];
services.gitea-actions-runner = {
package = pkgs.forgejo-actions-runner;

View file

@ -29,6 +29,12 @@ in {
initrd.availableKernelModules =
[ "ata_piix" "uhci_hcd" "ehci_pci" "virtio_pci" "ahci" "virtio_blk" ];
kernelModules = [ "kvm-intel" ];
kernelParams = [
"cgroup_enable=cpu"
"cgroup_enable=cpuset"
"cgroup_enable=memory"
"cgroup_memory=1"
];
};
}