Jump to content

Talk:Hyprland

From NixOS Wiki

#Theme_Support: update method for configuring theme with dconf

Currently NixOS Wiki suggests this:

≡︎ hyprland.conf
exec-once=dconf write /org/gnome/desktop/interface/gtk-theme "'Adwaita'"
exec-once = dconf write /org/gnome/desktop/interface/icon-theme "'Flat-Remix-Red-Dark'"
exec-once = dconf write /org/gnome/desktop/interface/document-font-name "'Noto Sans Medium 11'"
exec-once = dconf write /org/gnome/desktop/interface/font-name "'Noto Sans Medium 11'"
exec-once = dconf write /org/gnome/desktop/interface/monospace-font-name "'Noto Sans Mono Medium 11'"

This looks somewhat clumsy. Maybe we should replace it with the approach mentioned in Hyprland Wiki?

❄︎ configuration.nix
{
  programs.dconf.profiles.user.databases=[
    {
      settings."org/gnome/desktop/interface" = {
        gtk-theme = "Adwaita";
        icon-theme = "Flat-Remix-Red-Dark";
        font-name = "Noto Sans Medium 11";
        document-font-name = "Noto Sans Medium 11";
        monospace-font-name = "Noto Sans Mono Medium 11";
      };
    }
  ];
}

I am afraid of committing a stupid change because don't know the potential caveats with configuring this in the OS conf file rather than in Hyprland conf. Perhaps applying changes requires config rebuild? Pigeon (talk) 20:29, 26 June 2025 (UTC)Reply