Trying with emacs
This commit is contained in:
+7
-19
@@ -1191,33 +1191,21 @@ This file sets up wayland
|
|||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** =generated/system/core/gtk.nix=
|
** =generated/system/core/gtk.nix=
|
||||||
This file installs and configures eww
|
This file configures gtk
|
||||||
#+BEGIN_SRC nix :tangle generated/system/core/gtk.nix :noweb tangle :mkdirp yes :eval never-html
|
#+BEGIN_SRC nix :tangle generated/system/core/gtk.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
{ config, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Enable GTK and Qt theming
|
|
||||||
programs.gtk.enable = true;
|
|
||||||
programs.qt.enable = true;
|
|
||||||
|
|
||||||
# Install the Adwaita icon theme
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
adwaita-icon-theme
|
catppuccin-gtk
|
||||||
|
papirus-icon-theme
|
||||||
];
|
];
|
||||||
|
|
||||||
# Set GTK theme and icon theme via environment variables
|
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
GTK_THEME = "Adwaita:dark";
|
GTK_THEME = "Catppuccin-Mocha-Standard-Blue-Dark";
|
||||||
GTK_ICON_THEME = "Adwaita";
|
GTK_ICON_THEME = "Papirus-Dark";
|
||||||
QT_STYLE_OVERRIDE = "gtk2";
|
GTK_APPLICATION_PREFER_DARK_THEME = "1";
|
||||||
QT_QPA_PLATFORMTHEME = "gtk2";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# For Qt5/Qt6 apps
|
|
||||||
environment.etc."xdg/qt5ct/qss/qt5ct.qss".text = ''
|
|
||||||
/* Set dark palette for Qt5 apps */
|
|
||||||
@import "dark";
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
|||||||
@@ -1,26 +1,14 @@
|
|||||||
{ config, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Enable GTK and Qt theming
|
|
||||||
programs.gtk.enable = true;
|
|
||||||
programs.qt.enable = true;
|
|
||||||
|
|
||||||
# Install the Adwaita icon theme
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
adwaita-icon-theme
|
catppuccin-gtk
|
||||||
|
papirus-icon-theme
|
||||||
];
|
];
|
||||||
|
|
||||||
# Set GTK theme and icon theme via environment variables
|
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
GTK_THEME = "Adwaita:dark";
|
GTK_THEME = "Catppuccin-Mocha-Standard-Blue-Dark";
|
||||||
GTK_ICON_THEME = "Adwaita";
|
GTK_ICON_THEME = "Papirus-Dark";
|
||||||
QT_STYLE_OVERRIDE = "gtk2";
|
GTK_APPLICATION_PREFER_DARK_THEME = "1";
|
||||||
QT_QPA_PLATFORMTHEME = "gtk2";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# For Qt5/Qt6 apps
|
|
||||||
environment.etc."xdg/qt5ct/qss/qt5ct.qss".text = ''
|
|
||||||
/* Set dark palette for Qt5 apps */
|
|
||||||
@import "dark";
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user