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:
parent
64e29e52d6
commit
8e166a1263
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue