nix-configs/hm-modules/dark-theme.nix
2025-04-11 15:34:25 +02:00

32 lines
572 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";
};
};
}