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:
Austin Horstman 2025-07-26 17:11:53 -05:00 committed by GitHub
parent 37fec70bd5
commit 2b73c2fcca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 73 additions and 41 deletions

View file

@ -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;