50 lines
1.4 KiB
Nix
Raw Normal View History

2020-04-27 04:39:00 +03:00
{ pkgs, config, lib, inputs, ... }:
2020-02-17 16:00:59 +03:00
let
thm = config.themes.colors;
2021-06-10 18:58:51 +03:00
thm' = builtins.mapAttrs (name: value: { hex.rgb = value; }) thm;
2020-02-17 16:00:59 +03:00
in {
2020-12-27 10:16:20 +03:00
nixpkgs.overlays = [
(self: super: {
2021-06-10 18:58:51 +03: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 10:16:20 +03:00
})
];
2021-01-21 21:13:53 +03:00
programs.dconf.enable = true;
2020-05-12 23:35:29 +03:00
services.dbus.packages = with pkgs; [ gnome3.dconf ];
2020-02-17 16:00:59 +03:00
home-manager.users.balsoft = {
gtk = {
enable = true;
iconTheme = {
2020-06-21 12:17:20 +03:00
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
2020-02-17 16:00:59 +03:00
};
theme = {
name = "Generated";
package = pkgs.generated-gtk-theme;
};
2021-06-10 18:58:51 +03:00
font = {
name = with config.themes.fonts; "${main.family} ${toString main.size}";
};
2020-12-27 10:16:20 +03: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 21:13:53 +03:00
(builtins.attrNames inputs.self.nixosConfigurations);
2020-02-17 16:00:59 +03:00
};
2020-12-27 10:16:20 +03:00
2020-02-17 16:00:59 +03:00
};
2020-05-14 00:14:11 +03:00
home.sessionVariables.GTK_THEME = "Generated";
2020-02-17 16:00:59 +03:00
};
}