Modularize hardware config and remove specific nix folder

This commit is contained in:
DashieTM 2024-07-20 01:56:54 +02:00
parent a5042bb645
commit 9ac5b25036
72 changed files with 322 additions and 100 deletions

17
modules/programs/xone.nix Normal file
View file

@ -0,0 +1,17 @@
{ lib, config, options, ... }: {
options.mods = {
xone.enable = lib.mkOption {
default = false;
type = lib.types.bool;
example = true;
description = ''
Enables the xone driver for xbox controllers.
'';
};
};
config = lib.optionalAttrs (options?hardware) {
hardware.xone.enable = true;
};
}