🖌️ Catppuccin on GTK apps

This commit is contained in:
Martin Berg Alstad 2025-01-11 12:46:23 +01:00
parent d192efdf0f
commit 99c1d855ab
Signed by: martials
GPG Key ID: A3824877B269F2E2
5 changed files with 39 additions and 14 deletions

34
flake.lock generated
View File

@ -116,9 +116,7 @@
"catppuccin-v1_2": "catppuccin-v1_2", "catppuccin-v1_2": "catppuccin-v1_2",
"home-manager": "home-manager", "home-manager": "home-manager",
"home-manager-stable": "home-manager-stable", "home-manager-stable": "home-manager-stable",
"nixpkgs": [ "nixpkgs": "nixpkgs",
"nixpkgs"
],
"nixpkgs-stable": "nixpkgs-stable", "nixpkgs-stable": "nixpkgs-stable",
"nuscht-search": "nuscht-search" "nuscht-search": "nuscht-search"
}, },
@ -666,16 +664,16 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1736200483, "lastModified": 1736344531,
"narHash": "sha256-JO+lFN2HsCwSLMUWXHeOad6QUxOuwe9UOAF/iSl1J4I=", "narHash": "sha256-8YVQ9ZbSfuUk2bUf2KRj60NRraLPKPS0Q4QFTbc+c2c=",
"owner": "nixos", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3f0a8ac25fb674611b98089ca3a5dd6480175751", "rev": "bffc22eb12172e6db3c5dde9e3e5628f8e3e7912",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "NixOS",
"ref": "nixos-24.11", "ref": "nixos-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@ -712,6 +710,22 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_2": {
"locked": {
"lastModified": 1736200483,
"narHash": "sha256-JO+lFN2HsCwSLMUWXHeOad6QUxOuwe9UOAF/iSl1J4I=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "3f0a8ac25fb674611b98089ca3a5dd6480175751",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-24.11",
"repo": "nixpkgs",
"type": "github"
}
},
"nixvim": { "nixvim": {
"inputs": { "inputs": {
"devshell": "devshell", "devshell": "devshell",
@ -791,7 +805,7 @@
"catppuccin": "catppuccin", "catppuccin": "catppuccin",
"home-manager": "home-manager_2", "home-manager": "home-manager_2",
"hyprpanel": "hyprpanel", "hyprpanel": "hyprpanel",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs_2",
"nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-unstable": "nixpkgs-unstable",
"nixvim": "nixvim", "nixvim": "nixvim",
"spicetify-nix": "spicetify-nix", "spicetify-nix": "spicetify-nix",

View File

@ -7,7 +7,6 @@
catppuccin = { catppuccin = {
url = "github:catppuccin/nix"; url = "github:catppuccin/nix";
inputs.nixpkgs.follows = "nixpkgs";
}; };
home-manager = { home-manager = {
url = "github:nix-community/home-manager/release-24.11"; url = "github:nix-community/home-manager/release-24.11";

View File

@ -16,6 +16,7 @@ in
./default-applications.nix ./default-applications.nix
./fish.nix ./fish.nix
./git.nix ./git.nix
./gtk.nix
./mpv.nix ./mpv.nix
./nixvim ./nixvim
./rofi ./rofi
@ -25,8 +26,6 @@ in
./yazi ./yazi
]; ];
# Home Manager needs a bit of information about you and the
# paths it should manage.
home = { home = {
username = username; username = username;
homeDirectory = dir.home; homeDirectory = dir.home;

13
home-manager/gtk.nix Normal file
View File

@ -0,0 +1,13 @@
let
theme = import ../theme.nix;
in
{
gtk.enable = true;
catppuccin.gtk = {
enable = true;
flavor = theme.flavor;
icon.enable = true;
};
stylix.targets.gtk.enable = false;
}

View File

@ -6,7 +6,7 @@
]; ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
adw-gtk3 # adw-gtk3
glib glib
adwaita-icon-theme adwaita-icon-theme
gnomeExtensions.appindicator gnomeExtensions.appindicator