summary refs log tree commit diff stats
path: root/modules/nixos
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-04-04 16:33:47 +0200
committerSilas Schöffel <sils@sils.li>2024-04-04 16:33:47 +0200
commitbbd4ce79a80c61f2e377e55d9123a93fb9fbbc3e (patch)
tree2dbca425d0d8a5427763a52dde52fd516a424601 /modules/nixos
parentnixvim: remove cmp.settings.preselect (diff)
downloadnix-config-bbd4ce79a80c61f2e377e55d9123a93fb9fbbc3e.tar.gz
nix-config-bbd4ce79a80c61f2e377e55d9123a93fb9fbbc3e.zip
treewide: add stylix
Diffstat (limited to 'modules/nixos')
-rw-r--r--modules/nixos/sils/default.nix1
-rw-r--r--modules/nixos/sils/theming.nix15
2 files changed, 16 insertions, 0 deletions
diff --git a/modules/nixos/sils/default.nix b/modules/nixos/sils/default.nix
index 38d83a6..4db5358 100644
--- a/modules/nixos/sils/default.nix
+++ b/modules/nixos/sils/default.nix
@@ -3,5 +3,6 @@
     ./basesystem.nix
     ./meta.nix
     ./plymouth.nix
+    ./theming.nix
   ];
 }
diff --git a/modules/nixos/sils/theming.nix b/modules/nixos/sils/theming.nix
new file mode 100644
index 0000000..4ddaa62
--- /dev/null
+++ b/modules/nixos/sils/theming.nix
@@ -0,0 +1,15 @@
+{
+  config,
+  lib,
+  ...
+}: let
+  cfg = config.sils.theming;
+in {
+  options.sils.theming.enable = lib.mkEnableOption "theming";
+  config = lib.mkIf cfg.enable {
+    stylix = {
+      image = ../../../files/wallpaper.jpg;
+      polarity = "dark";
+    };
+  };
+}