feat(home): Qt config
This commit is contained in:
parent
8bdb0d1a47
commit
adacfc47c4
2 changed files with 30 additions and 10 deletions
30
modules/home/appearance/qt/default.nix
Normal file
30
modules/home/appearance/qt/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
namespace,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf;
|
||||
inherit (lib.${namespace}) mkEnableModule;
|
||||
|
||||
cfg = config.${namespace}.appearance.qt;
|
||||
inherit (config.${namespace}) theme;
|
||||
in
|
||||
{
|
||||
options.appearance = mkEnableModule "qt";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
xdg.configFile = mkIf (theme.colors.base == "rose-pine") {
|
||||
"qt5ct/colors/rose-pine.conf" = {
|
||||
source = "${inputs.rose-pine-qt5ct}/rose-pine.conf";
|
||||
};
|
||||
};
|
||||
|
||||
qt = {
|
||||
enable = true;
|
||||
style.name = "adwaita";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
{ flake, ... }:
|
||||
{
|
||||
xdg.configFile."qt5ct/colors/rose-pine.conf".source = "${flake.inputs.rose-pine-qt5ct}/rose-pine.conf";
|
||||
|
||||
qt = {
|
||||
enable = true;
|
||||
|
||||
style.name = "adwaita";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue