attempt darkmode

This commit is contained in:
janis 2025-09-03 04:33:17 +02:00
parent 4c2876dc50
commit d9658fa236
Signed by: janis
SSH key fingerprint: SHA256:bB1qbbqmDXZNT0KKD5c2Dfjg53JGhj7B3CFcLIzSqq8

View file

@ -1,4 +1,4 @@
{pkgs, ...}: {pkgs, lib, super-config, ...}:
let let
user = import ../data/user.nix {}; user = import ../data/user.nix {};
in { in {
@ -47,10 +47,19 @@ in {
package = pkgs.whitesur-cursors; package = pkgs.whitesur-cursors;
size = 24; size = 24;
}; };
gtk3.extraConfig = {
gtk-application-prefer-dark-theme = super-config.darkMode == true;
};
gtk4.extraConfig = {
gtk-application-prefer-dark-theme = super-config.darkMode == true;
};
}; };
dconf.settings = { dconf.settings = {
"org/gnome/desktop/interface" = { "org/gnome/desktop/interface" = {
color-scheme = lib.optionals (super-config.darkMode == true) "prefer-dark";
}; };
}; };
@ -83,6 +92,7 @@ in {
packages = with pkgs; [ packages = with pkgs; [
# Add your global packages here # Add your global packages here
neovim neovim
bottom
git git
wget wget
curl curl
@ -92,6 +102,7 @@ in {
pavucontrol pavucontrol
ripgrep ripgrep
killall killall
x11_ssh_askpass
vanilla-dmz vanilla-dmz
(discord.override {withVencord = true;}) (discord.override {withVencord = true;})
bitwarden-desktop bitwarden-desktop