diff options
author | Soispha <soispha@vhack.eu> | 2023-04-23 13:58:23 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-05-09 19:31:44 +0200 |
commit | ffc9a5eb6231433f4d0bbe9c10a50c38ef784607 (patch) | |
tree | bc7ec59fd7dfcd0659aa3f5ef88398142f30bc6d | |
parent | Fix(secrets/nheko): Add apzu (diff) | |
download | nixos-config-ffc9a5eb6231433f4d0bbe9c10a50c38ef784607.tar.gz nixos-config-ffc9a5eb6231433f4d0bbe9c10a50c38ef784607.zip |
Feat(system/options): Add laptop options
Diffstat (limited to '')
-rw-r--r-- | system/default.nix | 1 | ||||
-rw-r--r-- | system/options/default.nix | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/system/default.nix b/system/default.nix index 1c8d0900..71d74528 100644 --- a/system/default.nix +++ b/system/default.nix @@ -6,6 +6,7 @@ #./impermanence already at flake level imported ./locale ./sound + ./options ./users # the position of this item is fully arbitrary ./polkit ./hardware diff --git a/system/options/default.nix b/system/options/default.nix new file mode 100644 index 00000000..86caf3e9 --- /dev/null +++ b/system/options/default.nix @@ -0,0 +1,19 @@ +# vim: ts=2 +{ + lib, + config, + ... +}: let + cfg = config.soispha; +in { + options.soispha = { + laptop = { + enable = lib.mkEnableOption "Laptop improvemens"; + backlight = lib.mkOption { + type = lib.types.str; + example = lib.mdDoc "intel_backlight"; + description = lib.mdDoc "Which backlight to query for the screen brightness"; + }; + }; + }; +} |