[Altair] Sets up xpadneo and bluetooth.
This commit is contained in:
7
system/features/bluetooth.nix
Normal file
7
system/features/bluetooth.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
bluez
|
||||
];
|
||||
}
|
||||
@@ -6,7 +6,6 @@
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
networking.hostName = "altair"; # Define your hostname.
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
../../authorized-keys.nix
|
||||
../../features/appimage.nix
|
||||
../../features/audio.nix
|
||||
../../features/bluetooth.nix
|
||||
../../features/gc.nix
|
||||
../../features/gui.nix
|
||||
../../features/container-dev.nix
|
||||
|
||||
@@ -32,6 +32,12 @@
|
||||
};
|
||||
kernelModules = [ "kvm-intel" ];
|
||||
extraModulePackages = [ ];
|
||||
|
||||
# disable_ertm is required for xpadneo to connect properly and establish a
|
||||
# data connection.
|
||||
extraModprobeConfig = ''
|
||||
options bluetooth disable_ertm=1
|
||||
'';
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
@@ -107,6 +113,13 @@
|
||||
# Enable the nvidia-settings menu?
|
||||
nvidiaSettings = true;
|
||||
};
|
||||
xpadneo = {
|
||||
enable = true;
|
||||
settings = {
|
||||
disable_mouse = 1;
|
||||
};
|
||||
};
|
||||
bluetooth.enable = true;
|
||||
};
|
||||
|
||||
# Add a udev rule to prevent the mouse from waking the system. Note that it
|
||||
|
||||
Reference in New Issue
Block a user