From 76fbb1b15e83a9243efa7efe39d1d0fdd5a4d103 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Fri, 26 Aug 2022 00:07:08 +0200 Subject: [PATCH] treewide: replace by where appropriate --- modules/config/home-cursor.nix | 6 +++--- modules/home-environment.nix | 2 +- modules/lib/file-type.nix | 4 ++-- modules/programs/firefox.nix | 2 +- modules/programs/go.nix | 7 ++----- modules/programs/zsh.nix | 2 +- modules/services/window-managers/i3-sway/lib/options.nix | 2 +- 7 files changed, 11 insertions(+), 14 deletions(-) diff --git a/modules/config/home-cursor.nix b/modules/config/home-cursor.nix index e2d26a5b..d8cbb539 100644 --- a/modules/config/home-cursor.nix +++ b/modules/config/home-cursor.nix @@ -101,9 +101,9 @@ in { options. Options declared under namespaces such as x11 are backend specific options. By default, only backend independent cursor configurations are generated. If you need configurations for specific - backends, you can toggle them via the enable option. For example, - home.pointerCursor.x11.enable - will enable x11 cursor configurations. + backends, you can toggle them via the enable option. For example, + + will enable x11 cursor configurations. ''; }; }; diff --git a/modules/home-environment.nix b/modules/home-environment.nix index b83cf1d1..38576260 100644 --- a/modules/home-environment.nix +++ b/modules/home-environment.nix @@ -383,7 +383,7 @@ in unexpected state is found. For example, the checkLinkTargets script block checks for collisions between non-managed files and files defined in - home.file. + . diff --git a/modules/lib/file-type.nix b/modules/lib/file-type.nix index 0b30cb1b..cc23292b 100644 --- a/modules/lib/file-type.nix +++ b/modules/lib/file-type.nix @@ -33,7 +33,7 @@ in type = types.nullOr types.lines; description = '' Text of the file. If this option is null then - home.file.<name?>.source + must be set. ''; }; @@ -42,7 +42,7 @@ in type = types.path; description = '' Path of the source file or directory. If - home.file.<name?>.text + is non-null then this option will automatically point to a file containing that text. ''; diff --git a/modules/programs/firefox.nix b/modules/programs/firefox.nix index 39f1e980..a5864b81 100644 --- a/modules/programs/firefox.nix +++ b/modules/programs/firefox.nix @@ -176,7 +176,7 @@ in { Extensions listed here will only be available in Firefox profiles managed through the - programs.firefox.profiles + option. This is due to recent changes in the way Firefox handles extension side-loading. ''; diff --git a/modules/programs/go.nix b/modules/programs/go.nix index 8ec361b3..70a5c9b6 100644 --- a/modules/programs/go.nix +++ b/modules/programs/go.nix @@ -47,12 +47,9 @@ in { type = types.listOf types.str; default = [ ]; example = [ "extraGoPath1" "extraGoPath2" ]; - description = let goPathOpt = "programs.go.goPath"; - in '' + description = '' Extra GOPATHs relative to HOME appended - after - ${goPathOpt}, - if that option is set. + after , if that option is set. ''; }; diff --git a/modules/programs/zsh.nix b/modules/programs/zsh.nix index 133b1c32..f06d0d0b 100644 --- a/modules/programs/zsh.nix +++ b/modules/programs/zsh.nix @@ -246,7 +246,7 @@ in } ''; description = '' - Similar to opt-programs.zsh.shellAliases, + Similar to , but are substituted anywhere on a line. ''; type = types.attrsOf types.str; diff --git a/modules/services/window-managers/i3-sway/lib/options.nix b/modules/services/window-managers/i3-sway/lib/options.nix index 27addca2..cae9c3a6 100644 --- a/modules/services/window-managers/i3-sway/lib/options.nix +++ b/modules/services/window-managers/i3-sway/lib/options.nix @@ -67,7 +67,7 @@ let default = null; description = '' Launch application on a particular workspace. DEPRECATED: - Use xsession.windowManager.i3.config.assigns + Use instead. See . ''; };