mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-21 00:11:11 +01:00
hyprpanel: deprecate theme.name option
(cherry picked from commit b4b5f008d7)
This commit is contained in:
parent
54b2879ce6
commit
f9fa795a29
1 changed files with 20 additions and 1 deletions
|
|
@ -91,7 +91,26 @@ in
|
||||||
|
|
||||||
xdg.configFile.hyprpanel = lib.mkIf (cfg.settings != { }) {
|
xdg.configFile.hyprpanel = lib.mkIf (cfg.settings != { }) {
|
||||||
target = "hyprpanel/config.json";
|
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
|
# hyprpanel replaces it with the same file, but without new line in the end
|
||||||
force = true;
|
force = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue