about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-04-23 13:58:23 +0200
committerSoispha <soispha@vhack.eu>2023-05-09 19:31:44 +0200
commitffc9a5eb6231433f4d0bbe9c10a50c38ef784607 (patch)
treebc7ec59fd7dfcd0659aa3f5ef88398142f30bc6d
parentFix(secrets/nheko): Add apzu (diff)
downloadnixos-config-ffc9a5eb6231433f4d0bbe9c10a50c38ef784607.tar.gz
nixos-config-ffc9a5eb6231433f4d0bbe9c10a50c38ef784607.zip
Feat(system/options): Add laptop options
Diffstat (limited to '')
-rw-r--r--system/default.nix1
-rw-r--r--system/options/default.nix19
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";
+      };
+    };
+  };
+}