diff --git a/nixos/boxes/foureighty.nix b/nixos/boxes/foureighty.nix index 1e2379f8..910af428 100644 --- a/nixos/boxes/foureighty.nix +++ b/nixos/boxes/foureighty.nix @@ -4,6 +4,7 @@ networking.hostName = "foureighty"; boot = { + kernelPackages = pkgs.linuxPackages_latest_hardened; extraModulePackages = with config.boot.kernelPackages; [ wireguard ]; initrd.kernelModules = [ "i915" ]; initrd.availableKernelModules = [ diff --git a/nixos/boxes/vm.nix b/nixos/boxes/vm.nix index f4969b1c..fad12cc7 100644 --- a/nixos/boxes/vm.nix +++ b/nixos/boxes/vm.nix @@ -6,6 +6,10 @@ services.xserver.desktopManager.plasma5.enable = lib.mkForce false; services.xserver.displayManager.sddm.enable = lib.mkForce false; + virtualisation.virtualbox.guest.enable = true; + virtualisation.virtualbox.guest.x11 = true; + + imports = [ ../common.nix diff --git a/nixos/common.nix b/nixos/common.nix index 26518bf9..54f486d4 100644 --- a/nixos/common.nix +++ b/nixos/common.nix @@ -105,7 +105,6 @@ in hardware.sane.enable = true; powerManagement.cpuFreqGovernor = (lib.mkForce null); - boot.kernelPackages = pkgs.linuxPackages_latest_hardened; nix.gc.automatic = true; nix.autoOptimiseStore = true;