mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 05:39:05 +08:00
move joystick
This commit is contained in:
parent
ce23149fca
commit
66d03c89a9
@ -175,6 +175,7 @@
|
||||
hardware =
|
||||
{
|
||||
bluetooth.enable = true;
|
||||
joystick.enable = true;
|
||||
};
|
||||
};}
|
||||
)
|
||||
@ -185,8 +186,6 @@
|
||||
./modules/kde.nix
|
||||
./modules/sops.nix
|
||||
./modules/boot/chn-PC.nix
|
||||
./modules/hardware/bluetooth.nix
|
||||
./modules/hardware/joystick.nix
|
||||
[ ./modules/hardware/nvidia-prime.nix { intelBusId = "PCI:0:2:0"; nvidiaBusId = "PCI:1:0:0"; } ]
|
||||
./modules/hardware/printer.nix
|
||||
./modules/hardware/sound.nix
|
||||
|
@ -3,6 +3,8 @@ inputs:
|
||||
options.nixos.hardware = let inherit (inputs.lib) mkOption types; in
|
||||
{
|
||||
bluetooth.enable = mkOption { type = types.bool; default = false; };
|
||||
joystick.enable = mkOption { type = types.bool; default = false; };
|
||||
};
|
||||
config.hardware.bluetooth.enable = inputs.config.nixos.hardware.bluetooth.enable;
|
||||
config.hardware = { bluetooth.enable = inputs.config.nixos.hardware.bluetooth.enable; }
|
||||
// (if inputs.config.nixos.hardware.joystick.enable then { xone.enable = true; xpadneo.enable = true; } else {});
|
||||
}
|
||||
|
@ -1 +0,0 @@
|
||||
{ config.hardware = { xone.enable = true; xpadneo.enable = true; }; }
|
Loading…
Reference in New Issue
Block a user