Split some modules up.
This commit is contained in:
parent
45cc3df817
commit
400d2ad28f
4 changed files with 68 additions and 59 deletions
12
system/hardware/joycond.nix
Normal file
12
system/hardware/joycond.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options.niksos.joycond = lib.mkEnableOption "support for nintendo switch controllers.";
|
||||
|
||||
config.services = lib.mkIf config.niksos.joycond {
|
||||
usbmuxd.enable = true;
|
||||
joycond.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue