move joystick

This commit is contained in:
陈浩南 2023-07-15 22:48:24 +08:00
parent ce23149fca
commit 66d03c89a9
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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 {});
}

View File

@ -1 +0,0 @@
{ config.hardware = { xone.enable = true; xpadneo.enable = true; }; }