1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-04-18 10:16:54 +00:00

hyprlock: remove dependency between docs and config

This commit is contained in:
Robert Helgesson 2025-02-05 22:23:16 +01:00
parent 64e29e52d6
commit 8e166a1263
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED

View file

@ -100,9 +100,7 @@ in {
importantPrefixes = lib.mkOption {
type = with lib.types; listOf str;
default = [ "$" "bezier" "monitor" "size" ]
++ lib.optionals cfg.sourceFirst [ "source" ];
example = [ "$" "bezier" "monitor" "size" ];
default = [ "$" "bezier" "monitor" "size" ];
description = ''
List of prefix of attributes to source at the top of the config.
'';
@ -118,7 +116,8 @@ in {
text = lib.optionalString (cfg.settings != { })
(lib.hm.generators.toHyprconf {
attrs = cfg.settings;
inherit (cfg) importantPrefixes;
importantPrefixes = cfg.importantPrefixes
++ lib.optional cfg.sourceFirst "source";
}) + lib.optionalString (cfg.extraConfig != null) cfg.extraConfig;
};
};