feat(home): GTK config
This commit is contained in:
parent
f04ca9fc90
commit
8bdb0d1a47
2 changed files with 26 additions and 10 deletions
26
modules/home/appearance/gtk/default.nix
Normal file
26
modules/home/appearance/gtk/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf;
|
||||
inherit (lib.${namespace}) mkEnableModule enabled;
|
||||
|
||||
cfg = config.${namespace}.appearance.gtk;
|
||||
inherit (config.${namespace}) theme;
|
||||
in
|
||||
{
|
||||
options.appearance = mkEnableModule "gtk";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
gtk = {
|
||||
enable = true;
|
||||
|
||||
"${theme.colors.theme}" = enabled;
|
||||
|
||||
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
gtk = {
|
||||
enable = true;
|
||||
|
||||
rose-pine.enable = true;
|
||||
|
||||
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue