aboutsummaryrefslogtreecommitdiffstats
path: root/modules/nixos/sils/graphics.nix
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-10-29 22:17:49 +0100
committerSilas Schöffel <sils@sils.li>2024-10-29 22:32:23 +0100
commitd789d70da67f2c64715e9026a5eff7623bbee382 (patch)
tree3b07f02be38922fa064bf92e37af193bc14270f2 /modules/nixos/sils/graphics.nix
parentbasesystem: disable everything interfering with disko (diff)
downloadnix-config-d789d70da67f2c64715e9026a5eff7623bbee382.zip
opengl: rename to graphics
Diffstat (limited to 'modules/nixos/sils/graphics.nix')
-rw-r--r--modules/nixos/sils/graphics.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/nixos/sils/graphics.nix b/modules/nixos/sils/graphics.nix
new file mode 100644
index 0000000..77f58d8
--- /dev/null
+++ b/modules/nixos/sils/graphics.nix
@@ -0,0 +1,12 @@
+{
+ lib,
+ config,
+ ...
+}: let
+ cfg = config.sils.graphics;
+in {
+ options.sils.graphics.enable = lib.mkEnableOption "graphics";
+ config = lib.mkIf cfg.enable {
+ hardware.graphics.enable = true;
+ };
+}