Commit 298522a

HPCesia <me@hpcesia.com>
2026-04-26 14:28:00
feat: den aspect - desktop/no-stylix
1 parent 7a7db71
Changed files (2)
modules
desktop
hosts
pardofelis
modules/desktop/no-stylix.nix
@@ -0,0 +1,26 @@
+{lib, ...}: let
+  nixos-conf = {
+    stylix.targets = lib.genAttrs [
+      "gnome"
+      "gnome-text-editor"
+      "gtk"
+      "qt"
+    ] (t: {enable = false;});
+  };
+  hm-conf = {
+    stylix.targets = lib.genAttrs [
+      "eog"
+      "gnome"
+      "gnome-text-editor"
+      "gtk"
+      "kde"
+      "qt"
+    ] (t: {enable = false;});
+  };
+in {
+  # Prevent stylix generate unnecessary configs for non-desktop environments.
+  den.aspects.desktop.provides.no-stylix = {
+    nixos = nixos-conf;
+    homeManager = hm-conf;
+  };
+}
modules/hosts/pardofelis/default.nix
@@ -1,8 +1,11 @@
 {
   inputs,
   config,
+  den,
   ...
-}: {
+}:  let
+  inherit (den.lib) __findFile;
+in {
   #############################################################
   #
   #  Pardofelis - NixOS running on a 2C4G VPS
@@ -27,6 +30,10 @@
       };
   };
 
+  den.aspects.pardofelis.provides.to-users.includes = [
+    <desktop/no-stylix>
+  ];
+
   flake.meta.host.hosts.pardofelis = {
     system = "x86_64-linux";
     hostPubKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEuT/WkeA7btTeATmWJ2O9f/A6FI0Gl/1KjPGfHbWD5C root@pardofelis";