mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
hyprland: do not override existing plugins settings in config
The plugin setting in the Hyprland config is used both for defining
plugin paths and configuring the plugins. This fix removes the
silent override of the plugins settings converting them to the
`plugin:<name> { ...settings }` syntax.
This commit is contained in:
@@ -207,7 +207,8 @@ in {
|
||||
else
|
||||
entry;
|
||||
in map mkEntry cfg.plugins;
|
||||
};
|
||||
} // lib.mapAttrs' (n: v: lib.nameValuePair "plugin:${n}" v)
|
||||
(lib.attrByPath [ "plugin" ] { } cfg.settings);
|
||||
|
||||
shouldGenerate = cfg.systemd.enable || cfg.extraConfig != ""
|
||||
|| combinedSettings != { };
|
||||
|
||||
@@ -26,6 +26,13 @@ input {
|
||||
follow_mouse=1
|
||||
kb_layout=ro
|
||||
}
|
||||
|
||||
plugin:plugin1 {
|
||||
section {
|
||||
other=dummy setting
|
||||
}
|
||||
dummy=plugin setting
|
||||
}
|
||||
bindm=$mod, mouse:272, movewindow
|
||||
bindm=$mod, mouse:273, resizewindow
|
||||
bindm=$mod ALT, mouse:272, resizewindow
|
||||
|
||||
@@ -45,6 +45,13 @@
|
||||
"$mod, mouse:273, resizewindow"
|
||||
"$mod ALT, mouse:272, resizewindow"
|
||||
];
|
||||
|
||||
plugin = {
|
||||
plugin1 = {
|
||||
dummy = "plugin setting";
|
||||
section = { other = "dummy setting"; };
|
||||
};
|
||||
};
|
||||
};
|
||||
extraConfig = ''
|
||||
# window resize
|
||||
|
||||
Reference in New Issue
Block a user