fix(wm): attepmts at having a dark theme in nautilus

This commit is contained in:
EinEtwas 2024-11-02 11:24:02 +01:00
parent a455d51125
commit aa6425a846
Signed by: etwas
SSH key fingerprint: SHA256:bHhIeAdn/2k9jmOs6+u6ox98VYmoHUN3HfnpV2w8Ws0
2 changed files with 18 additions and 9 deletions

View file

@ -1,6 +1,7 @@
{ pkgs, ... }:
{
gtk = {
enable = true;
catppuccin = {
enable = true;
size = "compact";
@ -17,7 +18,14 @@
accent = "mauve";
};
};
gtk3.extraConfig."gtk-application-prefer-darktheme" = true;
};
# enable dark mode in electron apps (and possibly other places too)
# https://github.com/NixOS/nixpkgs/issues/274554#issuecomment-2211307799
dconf.settings = {
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
};
};
home.pointerCursor = {
@ -36,12 +44,4 @@
enable = true;
platformTheme.name = "gtk";
};
# enable dark mode in electron apps (and possibly other places too)
# https://github.com/NixOS/nixpkgs/issues/274554#issuecomment-2211307799
dconf.settings = {
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
};
};
}

View file

@ -13,6 +13,15 @@
fprintd
polkit_gnome
];
etc."xdg/gtk-2.0/gtkrc".text = ''
gtk-theme-name = "Papirus-Dark"
'';
etc."xdg/gtk-3.0/settings.ini".text = ''
[Settings]
gtk-theme-name = Papirus-Dark
'';
};
fonts.packages = with pkgs; [