From 2b536ceabb46fa9e7784729e8c6032451a2389cb Mon Sep 17 00:00:00 2001 From: Nicole Date: Thu, 9 Oct 2025 19:33:23 +0200 Subject: [PATCH] Added dedicated bt module, updated virt module --- etc/nixos/configuration.nix | 6 +++--- etc/nixos/modules/bluetooth.nix | 25 +++++++++++++++++++++++++ etc/nixos/modules/virtualization.nix | 4 ---- 3 files changed, 28 insertions(+), 7 deletions(-) create mode 100644 etc/nixos/modules/bluetooth.nix diff --git a/etc/nixos/configuration.nix b/etc/nixos/configuration.nix index 141071b..f5667e6 100644 --- a/etc/nixos/configuration.nix +++ b/etc/nixos/configuration.nix @@ -25,7 +25,7 @@ in ./modules/desktop.nix ./modules/ld-fix.nix ./modules/programs.nix - #./modules/audio.nix + ./modules/bluetooth.nix ]; @@ -33,8 +33,8 @@ in #░█▀▄░█░█░█░█░░█░░█░░░█░█░█▀█░█░█░█▀▀░█▀▄ #░▀▀░░▀▀▀░▀▀▀░░▀░░▀▀▀░▀▀▀░▀░▀░▀▀░░▀▀▀░▀░▀ - hardware.bluetooth.enable = true; # enables support for Bluetooth - hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot + #hardware.bluetooth.enable = true; # enables support for Bluetooth + #hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot services.blueman.enable = true; boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; diff --git a/etc/nixos/modules/bluetooth.nix b/etc/nixos/modules/bluetooth.nix new file mode 100644 index 0000000..6bad02b --- /dev/null +++ b/etc/nixos/modules/bluetooth.nix @@ -0,0 +1,25 @@ +{ config, pkgs, ... }: +{ + # Enable Bluetooth + hardware.bluetooth = { + enable = true; + powerOnBoot = true; + settings.General = { + experimental = true; # show battery + Privacy = "device"; + JustWorksRepairing = "always"; + Class = "0x000100"; + FastConnectable = true; + }; + }; + services.blueman.enable = true; + + hardware.xpadneo.enable = true; # Enable the xpadneo driver for Xbox One wireless controllers + boot = { + extraModulePackages = with config.boot.kernelPackages; [ xpadneo ]; + extraModprobeConfig = '' + options bluetooth disable_ertm=Y + ''; + # connect xbox controller + }; +} diff --git a/etc/nixos/modules/virtualization.nix b/etc/nixos/modules/virtualization.nix index e13c2e2..0472f3b 100644 --- a/etc/nixos/modules/virtualization.nix +++ b/etc/nixos/modules/virtualization.nix @@ -62,10 +62,6 @@ in package = pkgs.qemu_kvm; runAsRoot = true; swtpm.enable = true; - ovmf = { - enable = true; - packages = [ pkgs.OVMFFull.fd ]; - }; }; };