74 lines
2.2 KiB
Nix
Raw Normal View History

{ pkgs, config, inputs, ... }:
2019-09-11 17:17:56 +04:00
let
2020-08-10 01:17:22 +04:00
thm = config.lib.base16.theme;
2019-09-11 17:17:56 +04:00
in {
2021-02-07 02:38:11 +03:00
nixpkgs.overlays = [
(self: super: {
2021-06-16 05:30:04 +03:00
generated-gtk-theme =
pkgs.callPackage "${inputs.rycee}/pkgs/materia-theme" {
configBase16 = {
name = "Generated";
kind = "dark";
colors = {
base00.hex.rgb = "${thm.base00-hex}";
2022-07-06 00:14:26 +03:00
base01.hex.rgb = "${thm.base01-hex}";
base02.hex.rgb = "${thm.base02-hex}";
2021-06-16 05:30:04 +03:00
base03.hex.rgb = "${thm.base03-hex}";
base04.hex.rgb = "${thm.base04-hex}";
base05.hex.rgb = "${thm.base05-hex}";
base06.hex.rgb = "${thm.base06-hex}";
base07.hex.rgb = "${thm.base07-hex}";
base08.hex.rgb = "${thm.base08-hex}";
base09.hex.rgb = "${thm.base09-hex}";
base0A.hex.rgb = "${thm.base0A-hex}";
base0B.hex.rgb = "${thm.base0B-hex}";
base0C.hex.rgb = "${thm.base0C-hex}";
base0D.hex.rgb = "${thm.base0D-hex}";
base0E.hex.rgb = "${thm.base0E-hex}";
base0F.hex.rgb = "${thm.base0F-hex}";
};
};
};
2021-02-07 02:38:11 +03:00
})
];
2022-01-29 00:41:41 +03:00
gtk.iconCache.enable = true;
2021-02-07 02:38:11 +03:00
programs.dconf.enable = true;
2022-01-29 00:41:41 +03:00
services.dbus.packages = with pkgs; [ dconf gcr ];
2022-12-10 22:34:39 +03:00
home-manager.users.${config.mainuser} = {
2019-09-11 17:17:56 +04:00
gtk = {
enable = true;
iconTheme = {
2021-02-07 02:38:11 +03:00
name = "${thm.iconTheme}";
2021-06-16 05:30:04 +03:00
package = thm.iconPackage;
2019-09-11 17:17:56 +04:00
};
2022-07-06 00:14:26 +03:00
# theme = {
2022-10-21 14:08:45 +03:00
# name = "Generated";
# package = pkgs.generated-gtk-theme;
2022-07-06 00:14:26 +03:00
# };
theme = {
name = "RosePine-Main-BL";
package = pkgs.rosepine-gtk-theme;
};
2019-09-22 13:35:49 +04:00
font = {
2021-09-16 01:03:52 +03:00
name = "${thm.fonts.main.family}";
size = thm.fontSizes.normal.int;
2021-02-07 02:38:11 +03:00
};
gtk3.extraConfig = {
Settings = ''
gtk-application-prefer-dark-theme=1
'';
};
gtk4.extraConfig = {
Settings = ''
gtk-application-prefer-dark-theme=1
'';
};
2019-09-11 17:17:56 +04:00
};
2022-10-21 14:08:45 +03:00
# home.sessionVariables.GTK_THEME = "Generated";
home.sessionVariables.GTK_THEME = "RosePine-Main-BL";
2019-09-11 17:17:56 +04:00
};
2023-04-08 17:59:55 +03:00
persist.state.homeDirectories = [
".config/dconf"
];
2019-09-11 17:17:56 +04:00
}