From 4d4e7ce1aa53feee2d23e9be97b6a6575693fef9 Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 10 Jun 2024 16:47:35 -0400 Subject: [PATCH] chore(home-manager): deprecate gtk module (#206) https://github.com/catppuccin/gtk/issues/262 --- modules/home-manager/gtk.nix | 14 ++++++++++++++ test.nix | 4 ---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/modules/home-manager/gtk.nix b/modules/home-manager/gtk.nix index 19800f2..7cf96fe 100644 --- a/modules/home-manager/gtk.nix +++ b/modules/home-manager/gtk.nix @@ -23,6 +23,11 @@ let in { options.gtk.catppuccin = ctp.mkCatppuccinOpt "gtk" // { + # NOTE: we are overriding the previous declaration of `enable` here + # as this module is deprecated and we do not want it to apply with + # the global `catppuccin.enable` + enable = lib.mkEnableOption "Catppuccin theme"; + accent = ctp.mkAccentOpt "gtk"; size = mkOption { type = types.enum [ @@ -55,6 +60,15 @@ in }; config = lib.mkIf enable { + warnings = [ + '' + `gtk.catppuccin` is deprecated and will be removed in a future release. + + The upstream port has been archived and support will no longer be provided. + Please see https://github.com/catppuccin/gtk/issues/262 + '' + ]; + gtk = { theme = let diff --git a/test.nix b/test.nix index ecbea7d..9402350 100644 --- a/test.nix +++ b/test.nix @@ -49,8 +49,6 @@ testers.runNixOSTest { console = enable; - programs.dconf = enable; # required for gtk - users.users.test = { isNormalUser = true; home = "/home/test"; @@ -119,8 +117,6 @@ testers.runNixOSTest { }; }; - gtk = lib.recursiveUpdate enable { catppuccin.cursor.enable = true; }; - qt = enable // { style.name = "kvantum"; };