Added dedicated bt module, updated virt module
This commit is contained in:
parent
84c8622d56
commit
2b536ceabb
3 changed files with 28 additions and 7 deletions
|
|
@ -25,7 +25,7 @@ in
|
||||||
./modules/desktop.nix
|
./modules/desktop.nix
|
||||||
./modules/ld-fix.nix
|
./modules/ld-fix.nix
|
||||||
./modules/programs.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.enable = true; # enables support for Bluetooth
|
||||||
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
|
#hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
|
||||||
services.blueman.enable = true;
|
services.blueman.enable = true;
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
|
||||||
25
etc/nixos/modules/bluetooth.nix
Normal file
25
etc/nixos/modules/bluetooth.nix
Normal file
|
|
@ -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
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -62,10 +62,6 @@ in
|
||||||
package = pkgs.qemu_kvm;
|
package = pkgs.qemu_kvm;
|
||||||
runAsRoot = true;
|
runAsRoot = true;
|
||||||
swtpm.enable = true;
|
swtpm.enable = true;
|
||||||
ovmf = {
|
|
||||||
enable = true;
|
|
||||||
packages = [ pkgs.OVMFFull.fd ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue