From 89397065e262e7fcd79590c337cfa4f2d54eb905 Mon Sep 17 00:00:00 2001 From: Sneexy Date: Wed, 17 Apr 2024 21:31:20 -0500 Subject: [PATCH] feat: add catppuccin theming --- flake.nix | 9 +++++++++ home-manager/home.nix | 28 +++++++++++++++++++++++++++- nixos/configuration.nix | 4 +++- 3 files changed, 39 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 9c13971..5464341 100644 --- a/flake.nix +++ b/flake.nix @@ -22,6 +22,10 @@ # packages, such as modified linux kernels (which we do use here) chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable"; + # catppuccin's nix thingy for theming applications with catppuccin directly inside + # of the config + catppuccin.url = "github:catppuccin/nix"; + # home manager for managing user specific stuff home-manager = { url = "github:nix-community/home-manager/release-23.05"; @@ -52,6 +56,7 @@ nixpkgs, nixpkgs-master, chaotic, + catppuccin, home-manager, plasma-manager, nixos-06cb-009a-fingerprint-sensor, @@ -125,6 +130,8 @@ extraSpecialArgs = {inherit inputs outputs;}; modules = [ ./users/ruben/home.nix + # cat cat cat meow 🐈‍⬛🐈‍⬛🐈‍⬛🐈‍⬛🐈‍⬛🐈‍⬛🐈‍⬛ + catppuccin.homeManagerModules.catppuccin ]; }; # secondary device @@ -133,6 +140,8 @@ extraSpecialArgs = {inherit inputs outputs;}; modules = [ ./users/ruben/home.nix + # cat cat cat meow 🐈‍⬛🐈‍⬛🐈‍⬛🐈‍⬛🐈‍⬛🐈‍⬛🐈‍⬛ + catppuccin.homeManagerModules.catppuccin ]; }; }; diff --git a/home-manager/home.nix b/home-manager/home.nix index 19c141a..6e94a05 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -52,7 +52,10 @@ homeDirectory = "/home/ruben"; }; - # this is a got damn NEO VIMME HOUSE !! + # catppuccin flavour + catppuccin.flavour = "mocha"; + + # this is a got damn NEO VIMME HOUSE !! home.sessionVariables = { EDITOR = "nvim"; }; @@ -61,6 +64,7 @@ programs.fzf = { enable = true; enableZshIntegration = true; + catppuccin.enable = true; }; # my preferred shell customized to my needs @@ -145,8 +149,30 @@ mpv nextcloud-client + ventoy ]; + # catppuccin's gtk theme + gtk = { + enable = true; + theme = { + name = "Catppuccin-Mocha-Compact-Green-Dark"; + package = pkgs.catppuccin-gtk.override { + accents = [ "green" ]; + size = "compact"; + #tweaks = [ "rimless" "black" ]; + variant = "mocha"; + }; + }; + }; + + # required for catppuccin's gtk4 theme + xdg.configFile = { + "gtk-4.0/assets".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/assets"; + "gtk-4.0/gtk.css".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/gtk.css"; + "gtk-4.0/gtk-dark.css".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/gtk-dark.css"; + }; + # Nicely reload system units when changing configs systemd.user.startServices = "sd-switch"; diff --git a/nixos/configuration.nix b/nixos/configuration.nix index e064a3d..d067410 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -210,7 +210,9 @@ virt-manager pinentry-curses kitty wezterm - ventoy + bibata-cursors + papirus-icon-theme + (catppuccin-papirus-folders.override { flavor = [ "mocha" ]; accent = [ "green" ]; }) ]; # we like flatpaks