1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

hyprpanel: deprecate theme.name option

(cherry picked from commit b4b5f008d7)
This commit is contained in:
PerchunPak 2025-06-25 09:22:13 +02:00 committed by Austin Horstman
parent 54b2879ce6
commit f9fa795a29

View file

@ -91,7 +91,26 @@ in
xdg.configFile.hyprpanel = lib.mkIf (cfg.settings != { }) {
target = "hyprpanel/config.json";
source = jsonFormat.generate "hyprpanel-config" cfg.settings;
source = jsonFormat.generate "hyprpanel-config" (
if cfg.settings ? theme && cfg.settings.theme ? name then
lib.warn ''
`settings.theme.name` option has been removed, because the
hyprpanel module has been ported to downstream home-manager and
implementing it would require IFD
(https://nix.dev/manual/nix/2.26/language/import-from-derivation)
Replace it with:
```nix
programs.hyprpanel = {
theme = {
# paste content of https://github.com/Jas-SinghFSU/HyprPanel/blob/2c0c66a/themes/${cfg.settings.theme.name}.json
};
};
```
'' cfg.settings
else
cfg.settings
);
# hyprpanel replaces it with the same file, but without new line in the end
force = true;
};