summaryrefslogtreecommitdiff
path: root/common/modules/matugen
diff options
context:
space:
mode:
authorbrustybee <bee@4d2.org>2026-03-07 05:10:56 +0530
committerbrustybee <bee@4d2.org>2026-03-07 05:10:56 +0530
commit20bb620ba13e9dd2617782fd8b48f02abed9d2ad (patch)
tree5d93312e4d3a70f84352d114e0c95e9af62f3836 /common/modules/matugen
parentff3198ee65f1c217d51be133816a76c0648afcd7 (diff)
Fix modules to properly guard HM-only config from NixOS evaluatio
Diffstat (limited to 'common/modules/matugen')
-rw-r--r--common/modules/matugen/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/modules/matugen/default.nix b/common/modules/matugen/default.nix
index 5f5d6cf..fb84b92 100644
--- a/common/modules/matugen/default.nix
+++ b/common/modules/matugen/default.nix
@@ -27,13 +27,13 @@ let
'';
in
{
- imports = [ ./templates ];
+ imports = lib.optionals homeManager [ ./templates ];
options.${moduleNameSpace}.matugen = {
enable = lib.mkEnableOption "Enable Dynamic colors";
};
- config = lib.mkIf cfg.enable {
+ config = lib.mkIf cfg.enable (if homeManager then {
programs.wallust = {
enable = true;
settings = {
@@ -182,5 +182,5 @@ in
'';
};
};
- };
+ } else { });
}