nixos-config/profiles/workspace/gtk.nix

51 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2023-07-20 21:08:31 +04:00
{ pkgs, config, 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 {
2022-06-12 01:50:16 +04:00
services.xserver.gdk-pixbuf.modulePackages = [ pkgs.librsvg ];
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 = {
2023-02-16 18:51:34 +04:00
name = "breeze-dark";
package = pkgs.breeze-icons;
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
};
}