From 9c0f3ce601a4368c5362f67707879db4b5b8ee8b Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Mon, 23 Dec 2024 10:56:57 -0500 Subject: [PATCH] Use dark themes. --- nix/configuration/roles/sway/default.nix | 7 +++++++ nix/configuration/roles/sway/files/settings.ini | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 nix/configuration/roles/sway/files/settings.ini diff --git a/nix/configuration/roles/sway/default.nix b/nix/configuration/roles/sway/default.nix index 5a43ad2..130ba28 100644 --- a/nix/configuration/roles/sway/default.nix +++ b/nix/configuration/roles/sway/default.nix @@ -298,11 +298,13 @@ in '' export WLR_RENDERER_ALLOW_SOFTWARE=1 export NIXOS_OZONE_WL=1 # Wayland support for chromium and electron + export QT_QPA_PLATFORMTHEME=gtk3 # Use gtk theme in Qt applications '' else '' export WLR_RENDERER=vulkan export NIXOS_OZONE_WL=1 # Wayland support for chromium and electron + export QT_QPA_PLATFORMTHEME=gtk3 # Use gtk theme in Qt applications ''; programs.sway = { @@ -366,5 +368,10 @@ in source = ./files/mimeapps.list; }; }; + home.file = { + ".config/gtk-3.0/settings.ini" = { + source = ./files/settings.ini; + }; + }; }; } diff --git a/nix/configuration/roles/sway/files/settings.ini b/nix/configuration/roles/sway/files/settings.ini new file mode 100644 index 0000000..29322c1 --- /dev/null +++ b/nix/configuration/roles/sway/files/settings.ini @@ -0,0 +1,2 @@ +[Settings] +gtk-application-prefer-dark-theme=1