nix-configs/hm-modules/dark-theme.nix
2025-03-23 16:15:06 +01:00

28 lines
504 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;
};
};
}