From 45edfee04870fc073328965a78a833253c069925 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Mon, 11 Dec 2023 01:05:05 +0100 Subject: [PATCH] feat(hardware): Add kernelParams for all machines so that virtualisation is possible --- machines/storage01/gitea-actions-runner.nix | 7 ------- modules/dgn-hardware.nix | 6 ++++++ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/machines/storage01/gitea-actions-runner.nix b/machines/storage01/gitea-actions-runner.nix index e48d207..499834f 100644 --- a/machines/storage01/gitea-actions-runner.nix +++ b/machines/storage01/gitea-actions-runner.nix @@ -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; diff --git a/modules/dgn-hardware.nix b/modules/dgn-hardware.nix index 6993fcd..f235743 100644 --- a/modules/dgn-hardware.nix +++ b/modules/dgn-hardware.nix @@ -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" + ]; }; }