terra's desktop is split into profiles/workstation.nix (NixOS side) and home/desktop/ (home-manager side, moved from hosts/terra/home*), so titan, an ASUS Zenbook Pro Duo UX581 (Intel iGPU + RTX 2060 PRIME offload), gets the same Hyprland workstation. Per-host monitors, primary/secondary output and wallpaper are homelab.desktop.* options; the quickshell widgets read the outputs from QS_PRIMARY_OUTPUT/QS_SECONDARY_OUTPUT instead of hardcoding DP-2/HDMI-A-1. Folder icons come from a new HyprChrome-Folders icon theme. titan gets its own sops file and recipient. LibreChat is removed from terra along with its secrets declarations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
92 lines
3.1 KiB
Nix
92 lines
3.1 KiB
Nix
{ pkgs, ... }:
|
|
|
|
# Global Dracula theming (GTK + Qt)
|
|
let
|
|
azureGlassyDarkIcons = pkgs.callPackage ../../pkgs/azure-glassy-dark-icons.nix { };
|
|
amyDarkIcons = pkgs.callPackage ../../pkgs/amy-dark-icons.nix { };
|
|
slotBeautyDarkIcons = pkgs.callPackage ../../pkgs/slot-beauty-dark-icons.nix { };
|
|
hyprchromeCursors = pkgs.callPackage ../../pkgs/hyprchrome-cursors.nix { };
|
|
|
|
# HyprChrome folders on top, Amy for everything else (Inherits=).
|
|
# "HyprChrome-Folders-Solid" is the same set in the solid finish.
|
|
baseIconTheme = "Amy-Dark-Icons";
|
|
baseIconThemePackage = amyDarkIcons;
|
|
iconTheme = "HyprChrome-Folders";
|
|
iconThemePackage = pkgs.callPackage ../../pkgs/hyprchrome-folders.nix {
|
|
baseTheme = baseIconTheme;
|
|
};
|
|
in
|
|
{
|
|
gtk = {
|
|
enable = true;
|
|
theme = {
|
|
name = "Dracula";
|
|
package = pkgs.dracula-theme;
|
|
};
|
|
iconTheme = {
|
|
name = iconTheme;
|
|
package = iconThemePackage;
|
|
};
|
|
};
|
|
|
|
# XCURSOR_THEME alone isn't enough for Steam: steamwebhelper runs inside a
|
|
# pressure-vessel container with its own /etc, so XCURSOR_PATH doesn't
|
|
# resolve there and it falls back to the core X11 cursor. $HOME and /nix are
|
|
# bind-mounted in though, so the ~/.icons symlink `dotIcons` drops still
|
|
# resolves — same fix as the flatpak workaround below.
|
|
home.pointerCursor = {
|
|
name = "HyprChrome";
|
|
package = hyprchromeCursors;
|
|
size = 36;
|
|
gtk.enable = true;
|
|
hyprcursor.enable = true;
|
|
};
|
|
|
|
# Flatpak apps can't see XDG_DATA_DIRS/nix-store theme paths, so the
|
|
# portal-reported theme names resolve to nothing and fall back to Adwaita;
|
|
# Flatpak auto-exposes ~/.themes and ~/.icons read-only as the workaround.
|
|
home.file.".themes/Dracula".source =
|
|
"${pkgs.dracula-theme}/share/themes/Dracula";
|
|
home.file.".icons/${iconTheme}".source =
|
|
"${iconThemePackage}/share/icons/${iconTheme}";
|
|
home.file.".icons/${baseIconTheme}".source =
|
|
"${baseIconThemePackage}/share/icons/${baseIconTheme}";
|
|
home.packages = [ baseIconThemePackage ];
|
|
|
|
dconf.settings."org/gnome/desktop/interface" = {
|
|
color-scheme = "prefer-dark";
|
|
gtk-theme = "Dracula";
|
|
icon-theme = iconTheme;
|
|
};
|
|
|
|
# "qtct" (qt5ct/qt6ct) instead of "kde" avoids pulling in
|
|
# kdePackages.systemsettings just for the platform-theme plugin — kvantum
|
|
# itself carries the Dracula colors, qt5ct/qt6ct just need to be told to
|
|
# use it as the style.
|
|
qt = {
|
|
enable = true;
|
|
platformTheme.name = "qtct";
|
|
style.name = "kvantum";
|
|
};
|
|
xdg.configFile."Kvantum/kvantum.kvconfig".text = ''
|
|
[General]
|
|
theme=Dracula
|
|
'';
|
|
xdg.configFile."Kvantum/Dracula".source =
|
|
"${pkgs.dracula-theme}/share/Kvantum/Dracula";
|
|
|
|
# Quickshell's IconImage/Quickshell.iconPath() resolves icons through the
|
|
# Qt platform theme, not GTK — so the app-launcher grid needs the icon
|
|
# theme set HERE (qt5ct/qt6ct), separately from the GTK dconf key above.
|
|
xdg.configFile."qt5ct/qt5ct.conf".text = ''
|
|
[Appearance]
|
|
style=kvantum
|
|
icon_theme=${iconTheme}
|
|
'';
|
|
xdg.configFile."qt6ct/qt6ct.conf".text = ''
|
|
[Appearance]
|
|
style=kvantum
|
|
icon_theme=${iconTheme}
|
|
'';
|
|
}
|