feat(hardware): Add kernelParams for all machines so that virtualisation is possible
This commit is contained in:
parent
2e4f7d98c4
commit
45edfee048
2 changed files with 6 additions and 7 deletions
|
@ -3,13 +3,6 @@
|
||||||
let url = "https://git.dgnum.eu";
|
let url = "https://git.dgnum.eu";
|
||||||
|
|
||||||
in {
|
in {
|
||||||
boot.kernelParams = [
|
|
||||||
"cgroup_enable=cpu"
|
|
||||||
"cgroup_enable=cpuset"
|
|
||||||
"cgroup_enable=memory"
|
|
||||||
"cgroup_memory=1"
|
|
||||||
];
|
|
||||||
|
|
||||||
services.gitea-actions-runner = {
|
services.gitea-actions-runner = {
|
||||||
package = pkgs.forgejo-actions-runner;
|
package = pkgs.forgejo-actions-runner;
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,12 @@ in {
|
||||||
initrd.availableKernelModules =
|
initrd.availableKernelModules =
|
||||||
[ "ata_piix" "uhci_hcd" "ehci_pci" "virtio_pci" "ahci" "virtio_blk" ];
|
[ "ata_piix" "uhci_hcd" "ehci_pci" "virtio_pci" "ahci" "virtio_blk" ];
|
||||||
kernelModules = [ "kvm-intel" ];
|
kernelModules = [ "kvm-intel" ];
|
||||||
|
kernelParams = [
|
||||||
|
"cgroup_enable=cpu"
|
||||||
|
"cgroup_enable=cpuset"
|
||||||
|
"cgroup_enable=memory"
|
||||||
|
"cgroup_memory=1"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue