Split some modules up.
This commit is contained in:
parent
3136df9d3c
commit
b89851e6d6
4 changed files with 68 additions and 59 deletions
|
|
@ -3,9 +3,10 @@
|
|||
|
||||
imports = [
|
||||
./bluetooth.nix
|
||||
./graphics.nix
|
||||
./fingerprint.nix
|
||||
./fwupd.nix
|
||||
./graphics.nix
|
||||
./joycond.nix
|
||||
./power.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
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