diff --git a/modules/home-manager/kvantum.nix b/modules/home-manager/kvantum.nix index 8809ea7..b73c0c6 100644 --- a/modules/home-manager/kvantum.nix +++ b/modules/home-manager/kvantum.nix @@ -39,6 +39,10 @@ in ]; message = ''`qt.style.name` must be `"kvantum"` to use `qt.style.catppuccin`''; } + { + assertion = lib.elem (config.qt.platformTheme.name or null) [ "kvantum" ]; + message = ''`qt.platformTheme.name` must be set to `"kvantum"` to use `qt.style.catppuccin`''; + } ]; xdg.configFile = { diff --git a/test.nix b/test.nix index 6b73ce8..86eccfa 100644 --- a/test.nix +++ b/test.nix @@ -121,6 +121,7 @@ testers.runNixOSTest { }; qt = enable // { + platformTheme.name = "kvantum"; style.name = "kvantum"; };