Disable VBox extension pack and remove locked input

This commit is contained in:
Lgmrszd 2024-05-11 01:22:17 +03:00
parent 3b6dd1f5f8
commit 985f36d555
No known key found for this signature in database
GPG key ID: 9396B8BA6FBB14DE
2 changed files with 0 additions and 22 deletions

View file

@ -8,9 +8,7 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# separate inputs to lock some packages # separate inputs to lock some packages
# locked - stuff to be updated very unfrequently
# fresh - mostly desktop apps # fresh - mostly desktop apps
nixpkgs-locked.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-fresh.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs-fresh.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11"; nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11";
# nix-index-database.url = "github:nix-community/nix-index-database"; # nix-index-database.url = "github:nix-community/nix-index-database";
@ -31,7 +29,6 @@
outputs = inputs@{ outputs = inputs@{
nixpkgs, nixpkgs,
nixpkgs-locked,
nixpkgs-fresh, nixpkgs-fresh,
nixpkgs-stable, nixpkgs-stable,
# nix-index-database, # nix-index-database,
@ -42,17 +39,6 @@
}: }:
let let
system = "x86_64-linux"; system = "x86_64-linux";
overlay-locked = final: prev:
let
locked = import nixpkgs-locked {
inherit system;
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 {
inherit system; inherit system;
@ -73,7 +59,6 @@
# glfw = final.stable.glfw; # glfw = final.stable.glfw;
# }; # };
my-overlays = [ my-overlays = [
overlay-locked
overlay-fresh overlay-fresh
overlay-stable overlay-stable
overlay-vaapiIntel overlay-vaapiIntel
@ -88,12 +73,6 @@
}; };
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

View file

@ -166,7 +166,6 @@ in
virtualisation.waydroid.enable = true; virtualisation.waydroid.enable = true;
virtualisation.virtualbox.host.enable = true; virtualisation.virtualbox.host.enable = true;
virtualisation.virtualbox.host.package = pkgs.virtualbox; virtualisation.virtualbox.host.package = pkgs.virtualbox;
virtualisation.virtualbox.host.enableExtensionPack = true;
users.extraGroups.vboxusers.members = [ "lgm" ]; users.extraGroups.vboxusers.members = [ "lgm" ];
networking.hostName = "lgm-nixos"; # Define your hostname. networking.hostName = "lgm-nixos"; # Define your hostname.