mirror of
https://github.com/nix-community/home-manager.git
synced 2026-06-05 21:02:51 +00:00
hyprpanel: assert theme name warning
This commit is contained in:
@@ -2,5 +2,6 @@
|
||||
|
||||
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
|
||||
hyprpanel-basic-config = ./basic-config.nix;
|
||||
hyprpanel-deprecated-theme-name = ./deprecated-theme-name.nix;
|
||||
hyprpanel-with-hypridle = ./with-hypridle.nix;
|
||||
}
|
||||
|
||||
26
tests/modules/programs/hyprpanel/deprecated-theme-name.nix
Normal file
26
tests/modules/programs/hyprpanel/deprecated-theme-name.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
programs.hyprpanel = {
|
||||
enable = true;
|
||||
package = config.lib.test.mkStubPackage { name = "hyprpanel"; };
|
||||
settings.theme.name = "catppuccin_mocha";
|
||||
};
|
||||
|
||||
test.asserts.warnings.expected = [
|
||||
''
|
||||
Using `programs.hyprpanel.settings.theme.name` as a named theme is deprecated and will be
|
||||
removed in a future release. Please use `programs.hyprpanel.settings.theme` instead.
|
||||
|
||||
Named theme loading was removed because it requires import-from-derivation.
|
||||
|
||||
Paste theme contents from:
|
||||
https://github.com/Jas-SinghFSU/HyprPanel/blob/2c0c66a/themes/catppuccin_mocha.json
|
||||
|
||||
''
|
||||
];
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists "home-files/.config/hyprpanel/config.json"
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user