Add module for hardware and logitech stuff
This commit is contained in:
parent
395033c25a
commit
c99cad7aef
2 changed files with 19 additions and 0 deletions
1
modules/desktop/hardware/default.nix
Normal file
1
modules/desktop/hardware/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
{ import = [ ./logitech.nix ]; }
|
||||||
18
modules/desktop/hardware/logitech.nix
Normal file
18
modules/desktop/hardware/logitech.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.my.desktop.hardware.logitech;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.my.utils.hardware.logitech = {
|
||||||
|
enable = lib.mkEnableOption "Enable the Logitech Hardware (es. mouse)";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
|
hardware.logitech.wireless = {
|
||||||
|
enable = true;
|
||||||
|
enableGraphical = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue