nixos-config/profiles/workspace/gtk.nix

50 lines
1.4 KiB
Nix
Raw Normal View History

2020-04-27 05:39:00 +04:00
{ pkgs, config, lib, inputs, ... }:
2020-02-17 17:00:59 +04:00
let
thm = config.themes.colors;
2021-06-10 19:58:51 +04:00
thm' = builtins.mapAttrs (name: value: { hex.rgb = value; }) thm;
2020-02-17 17:00:59 +04:00
in {
2020-12-27 11:16:20 +04:00
nixpkgs.overlays = [
(self: super: {
2021-06-10 19:58:51 +04:00
generated-gtk-theme =
pkgs.callPackage "${inputs.rycee}/pkgs/materia-theme" {
configBase16 = {
name = "Generated";
kind = "dark";
colors = thm' // {
base01 = thm'.base00;
base02 = thm'.base00;
};
};
};
2020-12-27 11:16:20 +04:00
})
];
2021-01-21 22:13:53 +04:00
programs.dconf.enable = true;
2022-01-22 12:46:33 +04:00
services.dbus.packages = with pkgs; [ dconf ];
2020-02-17 17:00:59 +04:00
home-manager.users.balsoft = {
gtk = {
enable = true;
iconTheme = {
2020-06-21 13:17:20 +04:00
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
2020-02-17 17:00:59 +04:00
};
theme = {
name = "Generated";
package = pkgs.generated-gtk-theme;
};
2021-06-10 19:58:51 +04:00
font = {
name = with config.themes.fonts; "${main.family} ${toString main.size}";
};
2020-12-27 11:16:20 +04:00
gtk3 = {
bookmarks = [
"file:///home/balsoft/projects Projects"
"davs://nextcloud.balsoft.ru/remote.php/dav/files/balsoft nextcloud.balsoft.ru"
"sftp://balsoft.ru/home/balsoft balsoft.ru"
] ++ map (machine: "sftp://${machine}/home/balsoft ${machine}")
2021-01-21 22:13:53 +04:00
(builtins.attrNames inputs.self.nixosConfigurations);
2020-02-17 17:00:59 +04:00
};
2020-12-27 11:16:20 +04:00
2020-02-17 17:00:59 +04:00
};
2020-05-14 01:14:11 +04:00
home.sessionVariables.GTK_THEME = "Generated";
2020-02-17 17:00:59 +04:00
};
}