nix-configs/hm-modules/dark-theme.nix
Lucy Hochkamp 6088d13939
Some checks failed
ci/woodpecker/push/build-cache Pipeline failed
fix dark theme
2025-11-12 15:27:53 +01:00

32 lines
580 B
Nix

{
pkgs,
config,
lib,
inputs,
...
}:
let
cfg = config.xyno.dark-theme;
in
{
options.xyno.dark-theme.enable = lib.mkOption { default = false; };
config = lib.mkIf cfg.enable {
dconf = {
settings = {
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
};
};
};
gtk = {
enable = true;
gtk4.extraConfig.gtk-application-prefer-dark-theme = 1;
gtk3.extraConfig.gtk-application-prefer-dark-theme = 1;
};
# qt = {
# enable = true;
# style.name = "breeze";
# };
};
}