From 2614910b6f7851da506c7cee4934321fa2a0cf61 Mon Sep 17 00:00:00 2001 From: Lucy Hochkamp Date: Wed, 12 Nov 2025 16:24:27 +0100 Subject: [PATCH] gruvbox gtk --- flake.lock | 17 +++++++++++++++ flake.nix | 12 +++++++---- modules/presets/gui.nix | 46 ++++++++++++++++++++++++++++++++--------- 3 files changed, 61 insertions(+), 14 deletions(-) diff --git a/flake.lock b/flake.lock index 5dc1dfab..8e524d96 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,21 @@ { "nodes": { + "adw-colors": { + "flake": false, + "locked": { + "lastModified": 1759892823, + "narHash": "sha256-ocrVOebwU2AN4MAQywTOHEA8Lwbx7iOMbuI85V5jk4I=", + "owner": "lassekongo83", + "repo": "adw-colors", + "rev": "4f32945ffe95e871b46191d96dc5f61b153d699f", + "type": "github" + }, + "original": { + "owner": "lassekongo83", + "repo": "adw-colors", + "type": "github" + } + }, "authentik": { "inputs": { "authentik-src": "authentik-src", @@ -691,6 +707,7 @@ }, "root": { "inputs": { + "adw-colors": "adw-colors", "authentik": "authentik", "colmena": "colmena", "helix": "helix", diff --git a/flake.nix b/flake.nix index 6e9f09ca..71a78f0a 100644 --- a/flake.nix +++ b/flake.nix @@ -38,10 +38,6 @@ niri.inputs.nixpkgs.follows = "nixpkgs-master"; xwayland-satellite.url = "github:Supreeeme/xwayland-satellite"; xwayland-satellite.inputs.nixpkgs.follows = "nixpkgs-master"; - nheko.url = "github:Nheko-Reborn/nheko"; - nheko.flake = false; - mtxclient.url = "github:Nheko-Reborn/mtxclient"; - mtxclient.flake = false; nix-ci.url = "git+https://git.xyno.systems/xyno/nix-ci"; nix-ci.inputs.nixpkgs.follows = "nixpkgs"; @@ -62,6 +58,14 @@ terranix.url = "github:terranix/terranix"; terranix.inputs.nixpkgs.follows = "nixpkgs"; + # non flake inputs, maybe use npins in the future? + adw-colors.url = "github:lassekongo83/adw-colors"; + adw-colors.flake = false; + nheko.url = "github:Nheko-Reborn/nheko"; + nheko.flake = false; + mtxclient.url = "github:Nheko-Reborn/mtxclient"; + mtxclient.flake = false; + }; outputs = diff --git a/modules/presets/gui.nix b/modules/presets/gui.nix index d57d238f..156639f7 100644 --- a/modules/presets/gui.nix +++ b/modules/presets/gui.nix @@ -1,6 +1,7 @@ { pkgs, config, + inputs, lib, ... }: @@ -52,22 +53,47 @@ in inactive_colors=#ffebdbb2, #ff1d2021, #ffbdae93, #ffa89984, #ff3c3836, #ff504945, #ffebdbb2, #ffebdbb2, #ffebdbb2, #ff282828, #ff1d2021, #ff504945, #ff438184, #ffa89984, #ff458588, #ffcc241d, #ff282828, #ffebdbb2, #ff1d2021, #ffebdbb2, #ffbdae93 ''; qt5ctConf = pkgs.writeText "qt5ct.conf" '' - [Appearance] - color_scheme_path=${gruvboxDarkColors} - custom_palette=true - icon_theme=breeze-dark - standard_dialogs=xdgdesktopportal - style=Breeze + [Appearance] + color_scheme_path=${gruvboxDarkColors} + custom_palette=true + icon_theme=breeze-dark + standard_dialogs=xdgdesktopportal + style=Breeze - [Fonts] - fixed="Source Sans 3,12,-1,5,50,0,0,0,0,0" - general="Source Sans 3,12,-1,5,50,0,0,0,0,0" - ''; + [Fonts] + fixed="Source Sans 3,12,-1,5,50,0,0,0,0,0" + general="Source Sans 3,12,-1,5,50,0,0,0,0,0" + ''; in [ { home.file.".config/qt5ct/qt5ct.conf".source = qt5ctConf; home.file.".config/qt6ct/qt6ct.conf".source = qt5ctConf; + dconf = { + settings = { + "org/gnome/desktop/interface" = { + color-scheme = "prefer-dark"; + gtk-theme = "adw-gtk3-dark"; + }; + }; + }; + gtk = { + enable = true; + iconTheme.name = "breeze-dark"; + gtk4.extraConfig.gtk-application-prefer-dark-theme = 1; + gtk3.extraConfig.gtk-application-prefer-dark-theme = 1; + gtk3.theme.package = pkgs.adw-gtk3; + gtk3.theme.name = "adw-gtk3-dark"; + + gtk3.extraCss = '' + @import url("${inputs.adw-colors}/themes/adw-gruvbox/gtk3-dark.css"); + ''; + gtk4.extraCss = '' + @import url("${inputs.adw-colors}/themes/adw-gruvbox/gtk4-dark.css"); + ''; + + }; + } ];