treewide: remove config dependency on docs (#7547)
Tested with rebased https://github.com/nix-community/home-manager/pull/6411 so I could find all instances of config usage in docs. Signed-off-by: Austin Horstman <khaneliman12@gmail.com> Co-authored-by: Robert Helgesson <robert@rycee.net>
This commit is contained in:
parent
37fec70bd5
commit
2b73c2fcca
17 changed files with 73 additions and 41 deletions
|
|
@ -105,13 +105,9 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
sourceFirst =
|
||||
lib.mkEnableOption ''
|
||||
putting source entries at the top of the configuration
|
||||
''
|
||||
// {
|
||||
default = true;
|
||||
};
|
||||
sourceFirst = lib.mkEnableOption "putting source entries at the top of the configuration" // {
|
||||
default = true;
|
||||
};
|
||||
|
||||
importantPrefixes = lib.mkOption {
|
||||
type = with lib.types; listOf str;
|
||||
|
|
@ -120,13 +116,6 @@ in
|
|||
"bezier"
|
||||
"monitor"
|
||||
"size"
|
||||
]
|
||||
++ lib.optionals cfg.sourceFirst [ "source" ];
|
||||
example = [
|
||||
"$"
|
||||
"bezier"
|
||||
"monitor"
|
||||
"size"
|
||||
];
|
||||
description = ''
|
||||
List of prefix of attributes to source at the top of the config.
|
||||
|
|
@ -146,7 +135,7 @@ in
|
|||
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
Add a link
Reference in a new issue