From ffc9a5eb6231433f4d0bbe9c10a50c38ef784607 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 23 Apr 2023 13:58:23 +0200 Subject: Feat(system/options): Add laptop options --- system/default.nix | 1 + system/options/default.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 system/options/default.nix (limited to 'system') 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"; + }; + }; + }; +} -- cgit 1.4.1