aboutsummaryrefslogtreecommitdiffstats
path: root/modules/nixos/sils/graphics.nix
diff options
context:
space:
mode:
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;
+ };
+}