chore(home-manager): deprecate gtk module (#206)

https://github.com/catppuccin/gtk/issues/262
This commit is contained in:
seth 2024-06-10 16:47:35 -04:00 committed by GitHub
parent c4dac42a4f
commit 4d4e7ce1aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 4 deletions

View file

@ -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

View file

@ -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";
};