From 7d06e0cefe6e4a1e85b2b3274dcb0b3da242a557 Mon Sep 17 00:00:00 2001 From: luo jiyin Date: Thu, 12 Mar 2026 11:32:16 +0800 Subject: [PATCH] treewide: fix spelling errors --- docs/release-notes/rl-2511.md | 2 +- modules/config/home-cursor.nix | 2 +- modules/launchd/launchd.nix | 2 +- modules/lib/file-type.nix | 2 +- modules/misc/news/2025/10/2025-10-10_20-06-01.nix | 2 +- modules/programs/command-not-found/command-not-found.pl | 6 +++--- modules/programs/lutris.nix | 4 ++-- modules/programs/nvchecker.nix | 2 +- modules/programs/pianobar.nix | 2 +- modules/programs/quickshell.nix | 2 +- modules/programs/senpai.nix | 2 +- modules/services/colima.nix | 2 +- modules/services/hyprshell.nix | 2 +- modules/services/kanshi.nix | 2 +- modules/services/psd.nix | 2 +- modules/services/syncthing.nix | 2 +- modules/targets/generic-linux/nixgl.nix | 2 +- tests/default.nix | 2 +- 18 files changed, 21 insertions(+), 21 deletions(-) diff --git a/docs/release-notes/rl-2511.md b/docs/release-notes/rl-2511.md index 83f4b396..548ef083 100644 --- a/docs/release-notes/rl-2511.md +++ b/docs/release-notes/rl-2511.md @@ -49,7 +49,7 @@ This release has the following notable changes: - By default, Home Manager imports all modules, which leads to increased evaluation time. Some users may wish to only import the - modules they actually use. To accomodate this, a new option + modules they actually use. To accommodate this, a new option `home-manager.minimal` has been added. When this option is enabled, Home Manager will only import the basic set of modules it requires to function. Other modules will have to be enabled manually, like diff --git a/modules/config/home-cursor.nix b/modules/config/home-cursor.nix index eeb71110..1b8bc210 100644 --- a/modules/config/home-cursor.nix +++ b/modules/config/home-cursor.nix @@ -168,7 +168,7 @@ in will enable x11 cursor configurations. Note that this will merely generate the cursor configurations. - To apply the configurations, the relevant subsytems must also be configured. + To apply the configurations, the relevant subsystems must also be configured. For example, [](#opt-home.pointerCursor.gtk.enable) will generate the gtk cursor configuration, but [](#opt-gtk.enable) needs to be set for it to be applied. diff --git a/modules/launchd/launchd.nix b/modules/launchd/launchd.nix index ee202944..a093f99a 100644 --- a/modules/launchd/launchd.nix +++ b/modules/launchd/launchd.nix @@ -278,7 +278,7 @@ in multiple keys are provided, launchd ORs them, thus providing maximum flexibility to the job to refine the logic and stall if necessary. If launchd finds no reason to restart the job, it falls back on demand based invocation. Jobs that exit quickly and frequently when configured to be kept alive will - be throttled to converve system resources. + be throttled to conserve system resources. ''; }; diff --git a/modules/lib/file-type.nix b/modules/lib/file-type.nix index 96e714bb..2f1ba73b 100644 --- a/modules/lib/file-type.nix +++ b/modules/lib/file-type.nix @@ -97,7 +97,7 @@ in If `false` (the default) then the target will be a symbolic link to the source directory. If `true` then the target will be a - directory structure matching the source's but whose leafs + directory structure matching the source's but whose leaves are symbolic links to the files of the source directory. ''; }; diff --git a/modules/misc/news/2025/10/2025-10-10_20-06-01.nix b/modules/misc/news/2025/10/2025-10-10_20-06-01.nix index fd89ab83..e79b2e03 100644 --- a/modules/misc/news/2025/10/2025-10-10_20-06-01.nix +++ b/modules/misc/news/2025/10/2025-10-10_20-06-01.nix @@ -2,7 +2,7 @@ time = "2025-10-11T00:06:01+00:00"; condition = true; message = '' - A new option is availabe: `home-manager.minimal` + A new option is available: `home-manager.minimal` By default, Home Manager imports all modules, which leads to increased evaluation time. Some users may wish to only import the modules they diff --git a/modules/programs/command-not-found/command-not-found.pl b/modules/programs/command-not-found/command-not-found.pl index 64f0f1a4..199d971b 100644 --- a/modules/programs/command-not-found/command-not-found.pl +++ b/modules/programs/command-not-found/command-not-found.pl @@ -49,10 +49,10 @@ if ($len == 0) { if ($ENV{"NIX_AUTO_RUN_INTERACTIVE"} // "") { while (1) { print STDERR "'$program' from package '$package' will be run, confirm? [yn]: "; - chomp(my $comfirm = ); - if (lc $comfirm eq "n") { + chomp(my $confirm = ); + if (lc $confirm eq "n") { exit 0; - } elsif (lc $comfirm eq "y") { + } elsif (lc $confirm eq "y") { last; } } diff --git a/modules/programs/lutris.nix b/modules/programs/lutris.nix index c2ce7110..3a0b1b96 100644 --- a/modules/programs/lutris.nix +++ b/modules/programs/lutris.nix @@ -105,7 +105,7 @@ in description = '' The package to use for this runner, nix will try to find the executable for this package. A more specific path can be set by using settings.runner.runner_executable instead. - Uncompatible with certain runners, such as wine. + Incompatible with certain runners, such as wine. ''; type = types.nullOr types.package; }; @@ -130,7 +130,7 @@ in default = ""; description = '' Specific option to point to a runner executable directly, don't set runner.package if you set this. - Uncompatible with certain runners such as wine. + Incompatible with certain runners such as wine. ''; }; }; diff --git a/modules/programs/nvchecker.nix b/modules/programs/nvchecker.nix index 2f908ed5..ed060844 100644 --- a/modules/programs/nvchecker.nix +++ b/modules/programs/nvchecker.nix @@ -81,7 +81,7 @@ in { __config__ = { oldver = "my_custom_oldver.json"; - newver = "~/seperately_placed_newver.json"; + newver = "~/separately_placed_newver.json"; keyfile = "keyfile.toml"; }; diff --git a/modules/programs/pianobar.nix b/modules/programs/pianobar.nix index 114a884d..1751fca1 100644 --- a/modules/programs/pianobar.nix +++ b/modules/programs/pianobar.nix @@ -52,7 +52,7 @@ in freeformType = keyValueFormat.type; options = { user = mkOption { - description = "Username or emaill address for Pandora music service authentication"; + description = "Username or email address for Pandora music service authentication"; example = ''"groovy-tunes@example.com"''; type = nonEmptyStr; }; diff --git a/modules/programs/quickshell.nix b/modules/programs/quickshell.nix index 87cc52c1..92b123fd 100644 --- a/modules/programs/quickshell.nix +++ b/modules/programs/quickshell.nix @@ -11,7 +11,7 @@ in meta.maintainers = [ lib.maintainers.justdeeevin ]; options.programs.quickshell = { - enable = lib.mkEnableOption "quickshell, a flexbile QtQuick-based desktop shell toolkit."; + enable = lib.mkEnableOption "quickshell, a flexible QtQuick-based desktop shell toolkit."; package = lib.mkPackageOption pkgs "quickshell" { nullable = true; }; configs = lib.mkOption { type = lib.types.attrsOf lib.types.path; diff --git a/modules/programs/senpai.nix b/modules/programs/senpai.nix index c2b07425..82550dfe 100644 --- a/modules/programs/senpai.nix +++ b/modules/programs/senpai.nix @@ -28,7 +28,7 @@ in UR`ircs://`, `irc://`, and `irc+insecure://` URLs are supported, in which case only the hostname and port parts will be used. If - the scheme is `ircs/irc+insecure`, tls will be overriden and set + the scheme is `ircs/irc+insecure`, tls will be overridden and set to true/false accordingly. ''; }; diff --git a/modules/services/colima.nix b/modules/services/colima.nix index 2bbdf2c4..f21f7227 100644 --- a/modules/services/colima.nix +++ b/modules/services/colima.nix @@ -57,7 +57,7 @@ in extraDescription = "Used in various ways by colima."; }; curlPackage = lib.mkPackageOption pkgs "curl" { - extraDescription = "Used by colima to donwload images."; + extraDescription = "Used by colima to download images."; }; bashPackage = lib.mkPackageOption pkgs "bashNonInteractive" { extraDescription = "Used by colima's internal scripts."; diff --git a/modules/services/hyprshell.nix b/modules/services/hyprshell.nix index 183b7b69..4ecbd5da 100644 --- a/modules/services/hyprshell.nix +++ b/modules/services/hyprshell.nix @@ -28,7 +28,7 @@ in type = jsonFormat.type; default = { }; description = '' - Configuration settings for hyprshell. All the avaiblable + Configuration settings for hyprshell. All the available options can be found here: ''; }; diff --git a/modules/services/kanshi.nix b/modules/services/kanshi.nix index 9050c258..10345b9a 100644 --- a/modules/services/kanshi.nix +++ b/modules/services/kanshi.nix @@ -272,7 +272,7 @@ in default = [ ]; description = '' Ordered list of directives. - See kanshi(5) for informations. + See kanshi(5) for information. ''; example = literalExpression '' [ diff --git a/modules/services/psd.nix b/modules/services/psd.nix index 7863f788..4426e362 100644 --- a/modules/services/psd.nix +++ b/modules/services/psd.nix @@ -59,7 +59,7 @@ in type = lib.types.bool; default = true; description = '' - Whether to completly enable or disable the crash recovery feature. + Whether to completely enable or disable the crash recovery feature. ''; }; diff --git a/modules/services/syncthing.nix b/modules/services/syncthing.nix index a8b38318..08ed3f7d 100644 --- a/modules/services/syncthing.nix +++ b/modules/services/syncthing.nix @@ -38,7 +38,7 @@ let # required. then "--unix-socket ${cfg.guiAddress} http://.${path}" - # no adjustements are needed if cfg.guiAddress is a network address + # no adjustments are needed if cfg.guiAddress is a network address else "${cfg.guiAddress}${path}"; diff --git a/modules/targets/generic-linux/nixgl.nix b/modules/targets/generic-linux/nixgl.nix index 65bd0d8a..a81d2f3d 100644 --- a/modules/targets/generic-linux/nixgl.nix +++ b/modules/targets/generic-linux/nixgl.nix @@ -148,7 +148,7 @@ in description = '' Whether to enable Vulkan in nixGL wrappers. - This is disabled by default bacause Vulkan brings in several libraries + This is disabled by default because Vulkan brings in several libraries that can cause symbol version conflicts in wrapped programs. Your mileage may vary. ''; diff --git a/tests/default.nix b/tests/default.nix index 19d2b0f8..94f0227e 100644 --- a/tests/default.nix +++ b/tests/default.nix @@ -115,7 +115,7 @@ let if overlays == [ ] then scrubbedPkgs else - builtins.traceVerbose "eval overlayed nixpkgs" (lib.foldr (o: p: p.extend o) scrubbedPkgs overlays); + builtins.traceVerbose "eval overlaid nixpkgs" (lib.foldr (o: p: p.extend o) scrubbedPkgs overlays); in lib.mkImageMediaOverride stubbedPkgs; };