refactor(hardware): major refactor of hardware modules
This commit is contained in:
parent
8f229750b0
commit
4a177d2122
18 changed files with 95 additions and 191 deletions
13
system/modules/hardware/features/backlight/default.nix
Normal file
13
system/modules/hardware/features/backlight/default.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
features = config.systemModules.hardware.features;
|
||||
inherit (lib) mkIf;
|
||||
inherit (builtins) elem;
|
||||
in
|
||||
|
||||
{
|
||||
config = mkIf (elem "backlight" features) {
|
||||
hardware.brillo.enable = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue