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
|
in
|
||||||
{
|
{
|
||||||
options.gtk.catppuccin = ctp.mkCatppuccinOpt "gtk" // {
|
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";
|
accent = ctp.mkAccentOpt "gtk";
|
||||||
size = mkOption {
|
size = mkOption {
|
||||||
type = types.enum [
|
type = types.enum [
|
||||||
|
@ -55,6 +60,15 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf enable {
|
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 = {
|
gtk = {
|
||||||
theme =
|
theme =
|
||||||
let
|
let
|
||||||
|
|
4
test.nix
4
test.nix
|
@ -49,8 +49,6 @@ testers.runNixOSTest {
|
||||||
|
|
||||||
console = enable;
|
console = enable;
|
||||||
|
|
||||||
programs.dconf = enable; # required for gtk
|
|
||||||
|
|
||||||
users.users.test = {
|
users.users.test = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
home = "/home/test";
|
home = "/home/test";
|
||||||
|
@ -119,8 +117,6 @@ testers.runNixOSTest {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
gtk = lib.recursiveUpdate enable { catppuccin.cursor.enable = true; };
|
|
||||||
|
|
||||||
qt = enable // {
|
qt = enable // {
|
||||||
style.name = "kvantum";
|
style.name = "kvantum";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue