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
|
|
@ -33,7 +33,8 @@ in
|
|||
package = lib.mkPackageOption pkgs "ashell" { nullable = true; };
|
||||
|
||||
settings = lib.mkOption {
|
||||
inherit (settingsFormat) type;
|
||||
# NOTE: `yaml` type supports null, using `nullOr` for backwards compatibility period
|
||||
type = lib.types.nullOr tomlFormat.type;
|
||||
default = { };
|
||||
example = {
|
||||
modules = {
|
||||
|
|
|
|||
|
|
@ -77,30 +77,26 @@ let
|
|||
|
||||
updateUrl = mkOption {
|
||||
type = str;
|
||||
default = "https://clients2.google.com/service/update2/crx";
|
||||
description = ''
|
||||
URL of the extension's update manifest XML file. Linux only.
|
||||
'';
|
||||
default = "https://clients2.google.com/service/update2/crx";
|
||||
visible = pkgs.stdenv.isLinux;
|
||||
readOnly = pkgs.stdenv.isDarwin;
|
||||
};
|
||||
|
||||
crxPath = mkOption {
|
||||
type = nullOr path;
|
||||
default = null;
|
||||
description = ''
|
||||
Path to the extension's crx file. Linux only.
|
||||
'';
|
||||
default = null;
|
||||
visible = pkgs.stdenv.isLinux;
|
||||
};
|
||||
|
||||
version = mkOption {
|
||||
type = nullOr str;
|
||||
default = null;
|
||||
description = ''
|
||||
The extension's version, required for local installation. Linux only.
|
||||
'';
|
||||
default = null;
|
||||
visible = pkgs.stdenv.isLinux;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -28,7 +28,8 @@ in
|
|||
package = lib.mkPackageOption pkgs "codex" { nullable = true; };
|
||||
|
||||
settings = lib.mkOption {
|
||||
inherit (settingsFormat) type;
|
||||
# NOTE: `yaml` type supports null, using `nullOr` for backwards compatibility period
|
||||
type = lib.types.nullOr tomlFormat.type;
|
||||
description = ''
|
||||
Configuration written to {file}`~/.codex/config.toml` (0.2.0+) or {file}`~/.codex/config.yaml` (<0.2.0).
|
||||
See <https://github.com/openai/codex/blob/main/codex-rs/config.md> for supported values.
|
||||
|
|
|
|||
|
|
@ -297,6 +297,7 @@ in
|
|||
internal = true;
|
||||
type = with types; nullOr str;
|
||||
default = null;
|
||||
defaultText = literalExpression "platform specific vendor path";
|
||||
example = ".mozilla";
|
||||
description = "Directory containing the native messaging hosts directory.";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -75,7 +75,6 @@ in
|
|||
enableXsessionIntegration = mkOption {
|
||||
default = true;
|
||||
type = types.bool;
|
||||
visible = pkgs.stdenv.hostPlatform.isLinux;
|
||||
description = ''
|
||||
Whether to run keychain from your {file}`~/.xsession`.
|
||||
'';
|
||||
|
|
|
|||
|
|
@ -177,12 +177,14 @@ in
|
|||
description = "Settings to write to app.json.";
|
||||
type = with types; attrsOf anything;
|
||||
default = cfg.defaultSettings.app;
|
||||
defaultText = literalExpression "config.programs.obsidian.defaultSettings.app";
|
||||
};
|
||||
|
||||
appearance = mkOption {
|
||||
description = "Settings to write to appearance.json.";
|
||||
type = with types; attrsOf anything;
|
||||
default = cfg.defaultSettings.appearance;
|
||||
defaultText = literalExpression "config.programs.obsidian.defaultSettings.appearance";
|
||||
};
|
||||
|
||||
corePlugins =
|
||||
|
|
@ -214,6 +216,7 @@ in
|
|||
with types;
|
||||
listOf (coercedTo (enum corePlugins) (p: { name = p; }) (submodule corePluginsOptions));
|
||||
default = cfg.defaultSettings.corePlugins;
|
||||
defaultText = literalExpression "config.programs.obsidian.defaultSettings.corePlugins";
|
||||
};
|
||||
|
||||
communityPlugins =
|
||||
|
|
@ -243,6 +246,7 @@ in
|
|||
description = "Community plugins to install and activate.";
|
||||
type = with types; listOf (coercedTo package (p: { pkg = p; }) (submodule communityPluginsOptions));
|
||||
default = cfg.defaultSettings.communityPlugins;
|
||||
defaultText = literalExpression "config.programs.obsidian.defaultSettings.communityPlugins";
|
||||
};
|
||||
|
||||
cssSnippets =
|
||||
|
|
@ -287,6 +291,7 @@ in
|
|||
with types;
|
||||
listOf (coercedTo (addCheck path checkCssPath) (p: { source = p; }) (submodule cssSnippetsOptions));
|
||||
default = cfg.defaultSettings.cssSnippets;
|
||||
defaultText = literalExpression "config.programs.obsidian.defaultSettings.cssSnippets";
|
||||
};
|
||||
|
||||
themes =
|
||||
|
|
@ -310,6 +315,7 @@ in
|
|||
description = "Themes to install.";
|
||||
type = with types; listOf (coercedTo package (p: { pkg = p; }) (submodule themesOptions));
|
||||
default = cfg.defaultSettings.themes;
|
||||
defaultText = literalExpression "config.programs.obsidian.defaultSettings.themes";
|
||||
};
|
||||
|
||||
hotkeys =
|
||||
|
|
@ -333,6 +339,7 @@ in
|
|||
description = "Hotkeys to configure.";
|
||||
type = with types; attrsOf (listOf (submodule hotkeysOptions));
|
||||
default = cfg.defaultSettings.hotkeys;
|
||||
defaultText = literalExpression "config.programs.obsidian.defaultSettings.hotkeys";
|
||||
};
|
||||
|
||||
extraFiles =
|
||||
|
|
@ -367,6 +374,7 @@ in
|
|||
description = "Extra files to link to the vault directory.";
|
||||
type = with types; attrsOf (submodule extraFilesOptions);
|
||||
default = cfg.defaultSettings.extraFiles;
|
||||
defaultText = literalExpression "config.programs.obsidian.defaultSettings.extraFiles";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -98,6 +98,7 @@ in
|
|||
systemd.target = mkOption {
|
||||
type = types.str;
|
||||
default = config.wayland.systemd.target;
|
||||
defaultText = lib.literalExpression "config.wayland.systemd.target";
|
||||
description = ''
|
||||
Systemd target to bind to.
|
||||
'';
|
||||
|
|
|
|||
|
|
@ -308,6 +308,7 @@ in
|
|||
mutableExtensionsDir = mkOption {
|
||||
type = types.bool;
|
||||
default = allProfilesExceptDefault == { };
|
||||
defaultText = lib.literalExpression "(removeAttrs config.programs.vscode.profiles [ \"default\" ]) == { }";
|
||||
example = false;
|
||||
description = ''
|
||||
Whether extensions can be installed or updated manually
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ in
|
|||
target = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = config.wayland.systemd.target;
|
||||
defaultText = lib.literalExpression "config.wayland.systemd.target";
|
||||
example = "sway-session.target";
|
||||
description = ''
|
||||
The systemd target that will automatically start the yambar service.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue