Compare commits

..

2 Commits

Author SHA1 Message Date
jolheiser 724594d19a
chore: update secrets
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2023-07-14 21:19:01 -05:00
jolheiser 82b9cfae5e
feat: gtk
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2023-07-14 21:18:49 -05:00
3 changed files with 65 additions and 13 deletions

View File

@ -12,6 +12,7 @@
./gpg.nix ./gpg.nix
./git.nix ./git.nix
./go.nix ./go.nix
./gtk.nix
./helix.nix ./helix.nix
./jq.nix ./jq.nix
./nushell.nix ./nushell.nix

55
apps/gtk.nix 100644
View File

@ -0,0 +1,55 @@
{
config,
lib,
pkgs,
...
}: {
home.pointerCursor = {
name = "catppuccin-cursors";
package = pkgs.catppuccin-cursors.mochaLavender;
size = 24;
};
gtk = {
enable = true;
iconTheme = {
name = "Papirus-Dark";
package = pkgs.catppuccin-papirus-folders.override {
flavor = "mocha";
accent = "lavender";
};
};
theme = {
name = "Catppuccin-Mocha-Compact-Lavender-Dark";
package = pkgs.catppuccin-gtk.override {
accents = ["lavender"];
variant = "mocha";
size = "compact";
};
};
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
gtk2.extraConfig = ''
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintslight"
gtk-xft-rgba="rgb"
'';
gtk3.extraConfig = {
gtk-xft-antialias = 1;
gtk-xft-hinting = 1;
gtk-xft-hintstyle = "hintslight";
gtk-xft-rgba = "rgb";
};
};
xdg = let
themeDir = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}";
in
lib.mkIf config.gtk.enable {
configFile."gtk-4.0/assets" = {
source = "${themeDir}/gtk-4.0/assets";
recursive = true;
};
configFile."gtk-4.0/gtk.css".source = "${themeDir}/gtk-4.0/gtk.css";
configFile."gtk-4.0/gtk-dark.css".source = "${themeDir}/gtk-4.0/gtk-dark.css";
};
}

View File

@ -37,7 +37,12 @@
config, config,
pkgs, pkgs,
... ...
}: { }: let
userSecret = path: {
file = path;
owner = username;
};
in {
config = { config = {
nixpkgs.overlays = [overlays]; nixpkgs.overlays = [overlays];
home-manager = { home-manager = {
@ -49,18 +54,9 @@
}; };
}; };
age.secrets = { age.secrets = {
ssh-config = { ssh-config = userSecret ./secrets/shared/ssh-config.age;
file = ./secrets/shared/ssh-config.age; ssh-config-work = userSecret ./secrets/shared/ssh-config-work.age;
owner = username; spotify-pw = userSecret ./secrets/shared/spotify-pw.age;
};
ssh-config-work = {
file = ./secrets/shared/ssh-config-work.age;
owner = username;
};
spotify-pw = {
file = ./secrets/shared/spotify-pw.age;
owner = username;
};
}; };
}; };
}; };