diff --git a/configuration.nix b/configuration.nix index 76e6ef9..7d0e885 100644 --- a/configuration.nix +++ b/configuration.nix @@ -17,14 +17,11 @@ networking.networkmanager.enable = lib.mkDefault true; - # Set your time zone. time.timeZone = "Europe/Paris"; services.xserver.enable = true; services.xserver.displayManager.startx.enable = true; - # Enable sound. - # hardware.pulseaudio.enable = true; services.pipewire = { enable = true; pulse.enable = true; @@ -32,7 +29,6 @@ # Enable touchpad support (enabled default in most desktopManager). services.libinput.enable = true; - # Define a user account. Don't forget to set a password with ‘passwd’. users.users.tom = { isNormalUser = true; extraGroups = [ "wheel" ]; @@ -40,7 +36,6 @@ # packages = with pkgs; []; }; - # List packages installed in system profile. To search,: $ nix search wget environment.systemPackages = with pkgs; [ home-manager killall diff --git a/hosts/desktop.nix b/hosts/desktop.nix index 7ef2bca..ff5be69 100644 --- a/hosts/desktop.nix +++ b/hosts/desktop.nix @@ -5,6 +5,7 @@ imports = [ modules/game.nix modules/nvidia.nix + modules/vboxHost.nix ]; networking.hostName = "nixos-fixe"; diff --git a/hosts/laptop.nix b/hosts/laptop.nix index ac75efc..a35c0a8 100644 --- a/hosts/laptop.nix +++ b/hosts/laptop.nix @@ -4,6 +4,7 @@ imports = [ modules/game.nix modules/nvidia.nix + modules/vboxHost.nix ]; networking.hostName = "patate-douce"; networking.wireless.enable = true; diff --git a/hosts/modules/vboxHost.nix b/hosts/modules/vboxHost.nix new file mode 100644 index 0000000..1dbb97c --- /dev/null +++ b/hosts/modules/vboxHost.nix @@ -0,0 +1,6 @@ +{ config, lib, inputs, pkgs, ... }: + +{ + virtualisation.virtualbox.host.enable = true; + users.users.tom.extraGroups = [ "vboxusers" ]; +}