mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2024-11-22 03:07:56 +01:00
Hopefully make virtualbox module locked
This commit is contained in:
parent
dc7db9666b
commit
cfa56f9ddf
2 changed files with 13 additions and 2 deletions
13
flake.nix
13
flake.nix
|
@ -46,11 +46,16 @@
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
overlay-locked = final: prev: {
|
overlay-locked = final: prev:
|
||||||
|
let
|
||||||
locked = import nixpkgs-locked {
|
locked = import nixpkgs-locked {
|
||||||
inherit system;
|
inherit system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
inherit locked;
|
||||||
|
virtualbox = locked.virtualbox;
|
||||||
};
|
};
|
||||||
overlay-fresh = final: prev: {
|
overlay-fresh = final: prev: {
|
||||||
fresh = import nixpkgs-fresh {
|
fresh = import nixpkgs-fresh {
|
||||||
|
@ -87,6 +92,12 @@
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
({ config, pkgs, ... }: { nixpkgs.overlays = my-overlays; })
|
({ config, pkgs, ... }: { nixpkgs.overlays = my-overlays; })
|
||||||
|
{
|
||||||
|
disabledModules = [ "virtualisation/virtualbox-host.nix" ];
|
||||||
|
imports = [
|
||||||
|
(nixpkgs-locked + "/nixos/modules/virtualisation/virtualbox-host.nix")
|
||||||
|
];
|
||||||
|
}
|
||||||
# nur.nixosModules.nur
|
# nur.nixosModules.nur
|
||||||
inputs.nh.nixosModules.default
|
inputs.nh.nixosModules.default
|
||||||
./hosts/laptop/configuration.nix
|
./hosts/laptop/configuration.nix
|
||||||
|
|
|
@ -165,7 +165,7 @@ in
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
virtualisation.waydroid.enable = true;
|
virtualisation.waydroid.enable = true;
|
||||||
virtualisation.virtualbox.host.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;
|
virtualisation.virtualbox.host.enableExtensionPack = true;
|
||||||
users.extraGroups.vboxusers.members = [ "lgm" ];
|
users.extraGroups.vboxusers.members = [ "lgm" ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue