home(gui): add catppuccin gtk and cursor themes

This commit is contained in:
514fpv 2024-02-12 17:40:58 +08:00
parent 97f5b35bda
commit 32421517b8
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
5 changed files with 115 additions and 45 deletions

View file

@ -3,7 +3,10 @@
, config
, ... }: with lib; let
gui = with config.global.gpu; enable && session;
catppuccin = config.home.catppuccin;
in {
imports = [ ./catppuccin/nixos.nix ];
config = {
users.homeModules = [
# this module passes gui configuration to home-manager
@ -12,10 +15,13 @@ in {
users.adminGroups = mkIf gui [ "video" ];
# themes and icons
environment.systemPackages = with pkgs; mkIf gui [
whitesur-gtk-theme whitesur-icon-theme
papirus-icon-theme bibata-cursors
];
environment.systemPackages = with pkgs; mkIf gui ([
papirus-icon-theme
] ++ optionals (!catppuccin.enable) [
whitesur-gtk-theme
whitesur-icon-theme
bibata-cursors
]);
fonts.enableDefaultPackages = mkIf gui true;