nix/modules/home/theming/nix-colors.nix

56 lines
1.2 KiB
Nix
Raw Normal View History

2024-03-09 17:18:36 +01:00
{ config, nix-colors, pkgs, lib, ... }:
with lib;
2024-03-09 17:18:36 +01:00
let
cfg = config.settings.theming.nix-colors;
2024-03-09 17:18:36 +01:00
inherit
(nix-colors.lib-contrib { inherit pkgs; })
gtkThemeFromScheme;
in {
options = {
settings.theming.nix-colors.enable = lib.mkOption {
type = lib.types.bool;
description = ''
Enable nix colors configuration
'';
};
};
2024-06-20 13:41:57 +02:00
imports = [
nix-colors.homeManagerModules.default
];
config = mkIf cfg.enable {
2024-06-25 13:11:30 +02:00
colorScheme = nix-colors.colorSchemes.da-one-sea;
2024-10-11 17:14:39 +02:00
gtk = lib.mkIf (config.headless == false) {
2024-06-25 13:11:30 +02:00
enable = true;
theme = {
name = "${config.colorScheme.slug}";
package = gtkThemeFromScheme { scheme = config.colorScheme; };
};
iconTheme = {
package = pkgs.qogir-icon-theme;
name = "Qogir-dark";
};
2024-03-09 17:18:36 +01:00
};
2024-10-11 17:14:39 +02:00
qt = lib.mkIf (config.headless == false) {
2024-06-25 13:11:30 +02:00
enable = true;
platformTheme.name = "gtk";
style = {
name = "gtk2";
package = pkgs.qt6Packages.qt6gtk2;
};
2024-03-09 17:18:36 +01:00
};
2024-10-11 17:14:39 +02:00
home.pointerCursor = lib.mkIf (config.headless == false) {
2024-06-25 13:11:30 +02:00
package = pkgs.phinger-cursors;
name = "phinger-cursors-dark";
size = 24;
gtk.enable = true;
};
2024-03-09 17:18:36 +01:00
};
}