chore(home-manager): deprecate gtk module (#206)
https://github.com/catppuccin/gtk/issues/262
This commit is contained in:
parent
c4dac42a4f
commit
4d4e7ce1aa
2 changed files with 14 additions and 4 deletions
|
@ -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
|
||||
|
|
4
test.nix
4
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";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue