nix/modules/home/gui/theming.nix

44 lines
969 B
Nix

{ config, nix-colors, pkgs, lib, ... }:
let
inherit
(nix-colors.lib-contrib { inherit pkgs; })
gtkThemeFromScheme;
in
{
imports = [
nix-colors.homeManagerModules.default
];
config = {
colorScheme = nix-colors.colorSchemes.da-one-sea;
gtk = lib.mkIf (config.headless == false) {
enable = true;
theme = {
name = "${config.colorScheme.slug}";
package = gtkThemeFromScheme { scheme = config.colorScheme; };
};
iconTheme = {
package = pkgs.qogir-icon-theme;
name = "Qogir-dark";
};
};
qt = lib.mkIf (config.headless == false) {
enable = true;
platformTheme.name = "gtk";
style = {
name = "gtk2";
package = pkgs.qt6Packages.qt6gtk2;
};
};
home.pointerCursor = lib.mkIf (config.headless == false) {
package = pkgs.phinger-cursors;
name = "phinger-cursors-dark";
size = 24;
gtk.enable = true;
};
};
}