Working on GTK
This commit is contained in:
@@ -1,52 +1,24 @@
|
|||||||
{
|
{ 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
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Set the GTK theme and icon theme system-wide
|
||||||
|
gtk = {
|
||||||
|
theme = {
|
||||||
|
name = "Catppuccin-Mocha-Standard-Blue-Dark";
|
||||||
|
};
|
||||||
|
iconTheme = {
|
||||||
|
name = "Papirus-Dark";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Force dark mode for all GTK applications
|
# Force dark mode for all GTK applications
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
GTK_ENABLE_DARK_MODE = "1";
|
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 = {
|
|
||||||
enable = true;
|
|
||||||
theme = {
|
|
||||||
name = "Catppuccin-Mocha-Standard-Blue-Dark";
|
|
||||||
};
|
|
||||||
iconTheme = {
|
|
||||||
name = "Papirus-Dark";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Force dark mode for Zen Browser
|
|
||||||
xdg.configFile."zen-browser/user.js".text = ''
|
|
||||||
user_pref("widget.non-native-theme.enabled", false);
|
|
||||||
user_pref("ui.systemUsesDarkTheme", 1);
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user