summaryrefslogtreecommitdiff
path: root/common/modules/matugen/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'common/modules/matugen/default.nix')
-rw-r--r--common/modules/matugen/default.nix20
1 files changed, 11 insertions, 9 deletions
diff --git a/common/modules/matugen/default.nix b/common/modules/matugen/default.nix
index e9e9252..5ce3014 100644
--- a/common/modules/matugen/default.nix
+++ b/common/modules/matugen/default.nix
@@ -43,15 +43,15 @@ in
color_space = "salience";
check_contrast = true;
templates = {
- foot = {
+ foot = lib.mkIf config.beeMods.terminal.foot {
template = "foot-colors.ini";
target = "~/.config/foot/colors.ini";
};
- alacritty = {
+ alacritty = lib.mkIf config.beeMods.terminal.alacritty {
template = "alacritty-colors.toml";
target = "~/.config/alacritty/colors.toml";
};
- ghostty = {
+ ghostty = lib.mkIf config.beeMods.terminal.ghostty {
template = "ghostty-colors.conf";
target = "~/.config/ghostty/colors.conf";
};
@@ -59,11 +59,11 @@ in
template = "userChrome.css";
target = "~/.cache/wallust/userChrome.css";
};
- xresources = {
+ xresources = lib.mkIf config.beeMods.dwm.enable {
template = "colors-xresources";
target = "~/.config/x11/matugen.Xresources";
};
- sequences = {
+ sequences = lib.mkIf (config.beeMods.terminal.default == "foot") {
template = "sequences";
target = "~/.config/sequences";
};
@@ -180,14 +180,16 @@ in
output_path = "~/.config/matugen/neovim_matugen.json"
''}
+ ${lib.optionalString (config.beeMods.terminal.default == "foot") ''
+ [templates.sequences]
+ input_path = '~/.config/matugen/templates/sequences'
+ output_path = '~/.config/wallust/templates/sequences'
+ ''}
+
[templates.zed]
input_path = '~/.config/matugen/templates/zed.json'
output_path = '~/.config/zed/themes/matugen.json'
- [templates.sequences]
- input_path = '~/.config/matugen/templates/sequences'
- output_path = '~/.config/wallust/templates/sequences'
-
[templates.zen]
input_path = '~/.config/matugen/templates/zen.css'
output_path = '~/.config/wallust/templates/userChrome.css'