Regenerated
This commit is contained in:
+6
-11
@@ -616,39 +616,28 @@ Setting up GTK
|
|||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
# Resolve the username from the host config
|
|
||||||
username = config.defaultUser or "henrov";
|
username = config.defaultUser or "henrov";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
############################
|
|
||||||
# System-level GTK packages
|
|
||||||
############################
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
gtk3
|
gtk3
|
||||||
gtk4
|
gtk4
|
||||||
];
|
];
|
||||||
|
|
||||||
############################
|
|
||||||
# Home Manager user-level GTK configuration
|
|
||||||
############################
|
|
||||||
# Directly assign the GTK config to the user, no recursiveUpdate
|
|
||||||
home-manager.users."${username}" = {
|
home-manager.users."${username}" = {
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# GTK theme
|
|
||||||
theme = {
|
theme = {
|
||||||
name = "Catppuccin-Mocha-Standard-Blue-Dark";
|
name = "Catppuccin-Mocha-Standard-Blue-Dark";
|
||||||
package = pkgs.magnetic-catppuccin-gtk;
|
package = pkgs.magnetic-catppuccin-gtk;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Icon theme
|
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
name = "Papirus-Dark";
|
name = "Papirus-Dark";
|
||||||
package = pkgs.papirus-icon-theme;
|
package = pkgs.papirus-icon-theme;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Extra GTK3 / GTK4 settings
|
|
||||||
gtk3.extraConfig = {
|
gtk3.extraConfig = {
|
||||||
"gtk-application-prefer-dark-theme" = 1;
|
"gtk-application-prefer-dark-theme" = 1;
|
||||||
};
|
};
|
||||||
@@ -656,6 +645,12 @@ in
|
|||||||
"gtk-application-prefer-dark-theme" = 1;
|
"gtk-application-prefer-dark-theme" = 1;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Ensure GTK apps launched from Hyprland / terminal use dark theme
|
||||||
|
home.sessionVariables = {
|
||||||
|
GTK_THEME = "Catppuccin-Mocha-Standard-Blue-Dark";
|
||||||
|
XDG_DATA_DIRS = "${pkgs.papirus-icon-theme}/share:$XDG_DATA_DIRS";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|||||||
@@ -1,39 +1,28 @@
|
|||||||
{ pkgs, config, lib, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
# Resolve the username from the host config
|
|
||||||
username = config.defaultUser or "henrov";
|
username = config.defaultUser or "henrov";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
############################
|
|
||||||
# System-level GTK packages
|
|
||||||
############################
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
gtk3
|
gtk3
|
||||||
gtk4
|
gtk4
|
||||||
];
|
];
|
||||||
|
|
||||||
############################
|
|
||||||
# Home Manager user-level GTK configuration
|
|
||||||
############################
|
|
||||||
# Directly assign the GTK config to the user, no recursiveUpdate
|
|
||||||
home-manager.users."${username}" = {
|
home-manager.users."${username}" = {
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# GTK theme
|
|
||||||
theme = {
|
theme = {
|
||||||
name = "Catppuccin-Mocha-Standard-Blue-Dark";
|
name = "Catppuccin-Mocha-Standard-Blue-Dark";
|
||||||
package = pkgs.magnetic-catppuccin-gtk;
|
package = pkgs.magnetic-catppuccin-gtk;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Icon theme
|
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
name = "Papirus-Dark";
|
name = "Papirus-Dark";
|
||||||
package = pkgs.papirus-icon-theme;
|
package = pkgs.papirus-icon-theme;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Extra GTK3 / GTK4 settings
|
|
||||||
gtk3.extraConfig = {
|
gtk3.extraConfig = {
|
||||||
"gtk-application-prefer-dark-theme" = 1;
|
"gtk-application-prefer-dark-theme" = 1;
|
||||||
};
|
};
|
||||||
@@ -41,5 +30,11 @@ in
|
|||||||
"gtk-application-prefer-dark-theme" = 1;
|
"gtk-application-prefer-dark-theme" = 1;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Ensure GTK apps launched from Hyprland / terminal use dark theme
|
||||||
|
home.sessionVariables = {
|
||||||
|
GTK_THEME = "Catppuccin-Mocha-Standard-Blue-Dark";
|
||||||
|
XDG_DATA_DIRS = "${pkgs.papirus-icon-theme}/share:$XDG_DATA_DIRS";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user