From cfa56f9ddf9cadb5fcb3ee59a0175e3e7caf64a5 Mon Sep 17 00:00:00 2001 From: Lgmrszd Date: Sat, 2 Mar 2024 19:42:41 +0300 Subject: [PATCH] Hopefully make virtualbox module locked --- flake.nix | 13 ++++++++++++- hosts/laptop/configuration.nix | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 6ced436..b198e6a 100644 --- a/flake.nix +++ b/flake.nix @@ -46,11 +46,16 @@ }: let system = "x86_64-linux"; - overlay-locked = final: prev: { + overlay-locked = final: prev: + let locked = import nixpkgs-locked { inherit system; config.allowUnfree = true; }; + in + { + inherit locked; + virtualbox = locked.virtualbox; }; overlay-fresh = final: prev: { fresh = import nixpkgs-fresh { @@ -87,6 +92,12 @@ }; modules = [ ({ config, pkgs, ... }: { nixpkgs.overlays = my-overlays; }) + { + disabledModules = [ "virtualisation/virtualbox-host.nix" ]; + imports = [ + (nixpkgs-locked + "/nixos/modules/virtualisation/virtualbox-host.nix") + ]; + } # nur.nixosModules.nur inputs.nh.nixosModules.default ./hosts/laptop/configuration.nix diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index d72f549..8543e42 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -165,7 +165,7 @@ in virtualisation.docker.enable = true; virtualisation.waydroid.enable = true; virtualisation.virtualbox.host.enable = true; - virtualisation.virtualbox.host.package = pkgs.locked.virtualbox; + virtualisation.virtualbox.host.package = pkgs.virtualbox; virtualisation.virtualbox.host.enableExtensionPack = true; users.extraGroups.vboxusers.members = [ "lgm" ];