konsole: import colorscheme from modules

This commit is contained in:
Anthony Rodriguez 2024-10-01 17:53:51 +02:00
parent 685974da54
commit 70a00c13a6
Signed by: nezia
GPG key ID: EE3BE97C040A86CE

View file

@ -2,9 +2,13 @@
lib,
config,
inputs,
pkgs,
...
}: {
programs.konsole = {
programs.konsole = let
inherit (config.theme) scheme;
schemeData = inputs.basix.schemeData.base16.${scheme};
in {
enable = true;
defaultProfile = "default";
profiles = {
@ -13,6 +17,7 @@
name = "monospace";
size = 14;
};
colorScheme = schemeData.name;
};
};
@ -25,5 +30,9 @@
"ShowMenuBarByDefault" = "false";
};
};
customColorSchemes = {
"${schemeData.name}" = pkgs.lib.mkKonsoleColorScheme schemeData;
};
};
}