From d0d883cd07f1727b5941a82218a56b310a45ee4e Mon Sep 17 00:00:00 2001 From: cswimr Date: Sat, 16 Nov 2024 21:00:38 -0500 Subject: [PATCH] move catppuccin packages to their own file and add `xdg-desktop-portal-gtk` --- flake.nix | 6 ++++++ nixos/catppuccin.nix | 24 ++++++++++++++++++++++++ nixos/gui-pkgs.nix | 8 ++------ 3 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 nixos/catppuccin.nix diff --git a/flake.nix b/flake.nix index 4880fc4..1203854 100644 --- a/flake.nix +++ b/flake.nix @@ -22,6 +22,7 @@ modules = [ # imports ./hosts/eclipse.nix + ./nixos/catppuccin.nix ./nixos/configuration.nix ./nixos/environment.nix ./nixos/git.nix @@ -33,6 +34,11 @@ ./nixos/tailscale.nix ./nixos/zsh.nix + { + # enable bluetooth + hardware.bluetooth.enable = true; + } + # flake packages { environment.systemPackages = with inputs; [ diff --git a/nixos/catppuccin.nix b/nixos/catppuccin.nix new file mode 100644 index 0000000..9828c5f --- /dev/null +++ b/nixos/catppuccin.nix @@ -0,0 +1,24 @@ +{ pkgs, ... }: { + environment.systemPackages = with pkgs; [ + # catppuccin + (catppuccin.override { + variant = "mocha"; + accent ="blue"; + themeList = [ "bat" "btop" "grub" "lazygit" ]; + }) + catppuccin-cursors + + # catppuccin for kde plasma + (catppuccin-kde.override { + flavour = [ "mocha" "macchiato" "frappe" "latte" ]; + accents = [ "blue" ]; + winDecStyles = [ "classic" ]; + }) + + (catppuccin-gtk.override { + variant = "mocha"; + accents = [ "blue" ]; + size = "standard"; + }) + ]; +} diff --git a/nixos/gui-pkgs.nix b/nixos/gui-pkgs.nix index 963cda0..e0be124 100644 --- a/nixos/gui-pkgs.nix +++ b/nixos/gui-pkgs.nix @@ -5,12 +5,8 @@ let krita ytmdesktop wl-clipboard - # catppuccin for kde plasma - (catppuccin-kde.override { - flavour = [ "mocha" "macchiato" "frappe" "latte" ]; - accents = [ "blue" ]; - winDecStyles = [ "classic" ]; - }) + # we install xdg-desktop-portal-gtx so theming works from kde + xdg-desktop-portal-gtk ]; in { environment.systemPackages = lib.lists.unique (kdePackages ++ packages);