Skip to content

Commit

Permalink
implemented feedbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
c-leri committed May 8, 2024
1 parent 958844d commit c8513f4
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions modules/home-manager/gtk.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
, ...
}:
let
inherit (lib) ctp mkOption types;
inherit (lib) ctp mkOption mkEnableOption types;
cfg = config.gtk.catppuccin;
enable = cfg.enable && config.gtk.enable;
# "dark" and "light" can be used alongside the regular accents
Expand All @@ -25,11 +25,7 @@ in
default = [ "normal" ];
description = "Catppuccin tweaks for gtk";
};
gnome = mkOption {
type = lib.types.bool;
default = false;
description = "Wether to use the gtk theme as gnome shell's theme";
};
gnomeShellTheme = mkEnableOption "Catppuccin gtk theme for GNOME Shell";

cursor = ctp.mkCatppuccinOpt "gtk cursors"
// {
Expand All @@ -39,7 +35,7 @@ in

config = lib.mkIf enable {
assertions = [
(lib.ctp.assertXdgEnabled "gtk")
(ctp.assertXdgEnabled "gtk")
];

gtk = {
Expand Down Expand Up @@ -85,9 +81,9 @@ in
"gtk-4.0/gtk-dark.css".source = "${gtk4Dir}/gtk-dark.css";
};

home.packages = lib.mkIf cfg.gnome [pkgs.gnomeExtensions.user-themes];
home.packages = lib.mkIf cfg.gnomeShellTheme [pkgs.gnomeExtensions.user-themes];

dconf.settings = lib.mkIf cfg.gnome {
dconf.settings = lib.mkIf cfg.gnomeShellTheme {
"org/gnome/shell" = {
disable-user-extensions = false;
enabled-extensions = [
Expand Down

0 comments on commit c8513f4

Please sign in to comment.