From e4ea26262b3c40611bfd7fe1f652af73aed47637 Mon Sep 17 00:00:00 2001 From: Guanran928 <68757440+Guanran928@users.noreply.github.com> Date: Thu, 21 Mar 2024 01:29:05 +0800 Subject: [PATCH] treewide: fix typo using typos (#400) --- README.md | 2 +- docs/faq.md | 2 +- docs/getting_started.md | 4 ++-- docs/nixos/hardware.md | 2 +- nixos/common/default.nix | 4 ++-- nixos/desktop/pipewire.nix | 2 +- nixos/server/default.nix | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index c32889c..e7220c3 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ example to deploy a GitHub Action runner on Hetzner: inputs = { srvos.url = "github:nix-community/srvos"; # Use the version of nixpkgs that has been tested to work with SrvOS - # Alternativly we also support the latest nixos release and unstable + # Alternatively we also support the latest nixos release and unstable nixpkgs.follows = "srvos/nixpkgs"; }; outputs = { self, nixpkgs, srvos }: { diff --git a/docs/faq.md b/docs/faq.md index 9cf68a0..c7cca52 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -4,7 +4,7 @@ Some questions and answers that haven't been integrated in the documentation yet SrvOS is currently tested against `nixos-unstable` and the latest NixOS release. SrvOS itself is automatically updated and tested against the latest version of that channel once a week. -If you want to make sure to use a tested version, use the "follows" mechanims of Nix flakes to pull the same version as the one of SrvOS: +If you want to make sure to use a tested version, use the "follows" mechanisms of Nix flakes to pull the same version as the one of SrvOS: ```nix { diff --git a/docs/getting_started.md b/docs/getting_started.md index ab6e908..1773172 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -9,7 +9,7 @@ In this documentation, we expect the reader to be already familiar with the base This project exports four big categories of NixOS modules which are useful to define a server configuration: * Machine type - these are high-level settings that define the machine type (Eg: common, server or desktop). Only one of those would be included. -* Machine hardware - these define hardware-releated settings for well known hardware. Only one of those would be included. (eg: AWS EC2 instances). +* Machine hardware - these define hardware-related settings for well known hardware. Only one of those would be included. (eg: AWS EC2 instances). * Machine role - theses take over a machine for a specific role. Only one of those would be included. (eg: GitHub Actions runner) * Configuration mixins - these define addons to be added to the machine configuration. One or more can be added. @@ -23,7 +23,7 @@ Combining all of those together, here is how your `flake.nix` might look like, t inputs = { srvos.url = "github:nix-community/srvos"; # Use the version of nixpkgs that has been tested to work with SrvOS - # Alternativly we also support the latest nixos release and unstable + # Alternatively we also support the latest nixos release and unstable nixpkgs.follows = "srvos/nixpkgs"; }; outputs = { self, nixpkgs, srvos }: { diff --git a/docs/nixos/hardware.md b/docs/nixos/hardware.md index 137b5cd..23a8e25 100644 --- a/docs/nixos/hardware.md +++ b/docs/nixos/hardware.md @@ -32,7 +32,7 @@ Introduces some workaround for the particular IPv6 configuration that Hetzner ha Hardware configuration for bare-metal Intel servers. -Introduces some workaround for the perticular IPv6 configuration that Hetzner has. +Introduces some workaround for the particular IPv6 configuration that Hetzner has. ### `nixosModules.hardware-hetzner-online-ex101` diff --git a/nixos/common/default.nix b/nixos/common/default.nix index 33484fc..c1839fb 100644 --- a/nixos/common/default.nix +++ b/nixos/common/default.nix @@ -1,5 +1,5 @@ # A default configuration that applies to all servers. -# Common configuration accross *all* the machines +# Common configuration across *all* the machines { config, lib, ... }: { @@ -34,7 +34,7 @@ environment = { # This is pulled in by the container profile, but it seems broken and causes - # unecessary rebuilds. + # unnecessary rebuilds. noXlibs = false; } // lib.optionalAttrs (lib.versionAtLeast (lib.versions.majorMinor lib.version) "24.05") { # Don't install the /lib/ld-linux.so.2 stub. This saves one instance of diff --git a/nixos/desktop/pipewire.nix b/nixos/desktop/pipewire.nix index 7d8eec7..2220962 100644 --- a/nixos/desktop/pipewire.nix +++ b/nixos/desktop/pipewire.nix @@ -1,4 +1,4 @@ -# Use pipewire instead of PuleseAudio. See https://nixos.wiki/wiki/PipeWire +# Use pipewire instead of PulseAudio. See https://nixos.wiki/wiki/PipeWire { lib, config, ... }: { security.rtkit.enable = lib.mkDefault config.services.pipewire.enable; diff --git a/nixos/server/default.nix b/nixos/server/default.nix index bdb2305..1a1c7f2 100644 --- a/nixos/server/default.nix +++ b/nixos/server/default.nix @@ -1,5 +1,5 @@ # A default configuration that applies to all servers. -# Common configuration accross *all* the machines +# Common configuration across *all* the machines { pkgs, lib, ... }: {