Working on GTK

This commit is contained in:
2026-03-16 09:16:48 +00:00
parent e869588722
commit 4a8e68a0d9
@@ -1,40 +1,14 @@
{ { pkgs, ... }:
pkgs,
inputs,
stdenv,
...
}:
{ {
# Import the Catppuccin NixOS module # Install the Catppuccin GTK theme system-wide
imports = [
inputs.catppuccin.nixosModules.catppuccin
];
# Configure the Catppuccin GTK theme system-wide
catppuccin = {
gtk = {
enable = true;
flavor = "mocha";
};
};
# Set the GTK theme and icon theme system-wide
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
catppuccin-gtk
papirus-icon-theme papirus-icon-theme
]; ];
# Force dark mode for all GTK applications # Set the GTK theme and icon theme system-wide
environment.sessionVariables = {
GTK_ENABLE_DARK_MODE = "1";
GTK_THEME = "Catppuccin-Mocha-Standard-Blue-Dark";
GTK_ICON_THEME = "Papirus-Dark";
};
# Home Manager configuration for your user
home-manager.users.henrov = {
gtk = { gtk = {
enable = true;
theme = { theme = {
name = "Catppuccin-Mocha-Standard-Blue-Dark"; name = "Catppuccin-Mocha-Standard-Blue-Dark";
}; };
@@ -43,10 +17,8 @@
}; };
}; };
# Force dark mode for Zen Browser # Force dark mode for all GTK applications
xdg.configFile."zen-browser/user.js".text = '' environment.sessionVariables = {
user_pref("widget.non-native-theme.enabled", false); GTK_ENABLE_DARK_MODE = "1";
user_pref("ui.systemUsesDarkTheme", 1);
'';
}; };
} }