diff --git a/docs/QUICK_START.md b/docs/QUICK_START.md index 6cf9fa2..257fdff 100644 --- a/docs/QUICK_START.md +++ b/docs/QUICK_START.md @@ -126,7 +126,7 @@ nixosConfigurations = { pkgs.sbctl ]; - # Lanzaboote currently replaces the sytemd-boot module. + # Lanzaboote currently replaces the systemd-boot module. # This setting is usually set to true in configuration.nix # generated at installation time. So we force it to false # for now. diff --git a/flake.nix b/flake.nix index 9f74d54..13514e6 100644 --- a/flake.nix +++ b/flake.nix @@ -14,7 +14,7 @@ }; # We only have this input to pass it to other dependencies and - # avoid having mulitple versions in our dependencies. + # avoid having multiple versions in our dependencies. flake-utils.url = "github:numtide/flake-utils"; crane = { @@ -166,6 +166,7 @@ settings.hooks = { nixpkgs-fmt.enable = true; + typos.enable = true; }; }; diff --git a/nix/modules/lanzaboote.nix b/nix/modules/lanzaboote.nix index 1ac03f2..747c948 100644 --- a/nix/modules/lanzaboote.nix +++ b/nix/modules/lanzaboote.nix @@ -25,7 +25,7 @@ in }; pkiBundle = mkOption { type = types.nullOr types.path; - description = "PKI bundle containg db, PK, KEK"; + description = "PKI bundle containing db, PK, KEK"; }; publicKeyFile = mkOption { type = types.path; diff --git a/rust/tool/src/gc.rs b/rust/tool/src/gc.rs index 24ad270..bd1e47d 100644 --- a/rust/tool/src/gc.rs +++ b/rust/tool/src/gc.rs @@ -149,7 +149,7 @@ mod tests { } #[test] - fn keep_used_dirctory_with_used_and_unused_file() -> Result<()> { + fn keep_used_directory_with_used_and_unused_file() -> Result<()> { let tmpdir = tempfile::tempdir()?; let rootdir = create_dir(tmpdir.path().join("root"))?; diff --git a/rust/tool/src/generation.rs b/rust/tool/src/generation.rs index 70da0bb..63265d0 100644 --- a/rust/tool/src/generation.rs +++ b/rust/tool/src/generation.rs @@ -126,7 +126,7 @@ fn read_build_time(path: &Path) -> Result { /// A link pointing to a generation. /// /// Can be built from a symlink in /nix/var/nix/profiles/ alone because the name of the -/// symlink enocdes the version number. +/// symlink encodes the version number. #[derive(Debug)] pub struct GenerationLink { pub version: u64, diff --git a/rust/tool/src/pe.rs b/rust/tool/src/pe.rs index 520b82e..f6c47d1 100644 --- a/rust/tool/src/pe.rs +++ b/rust/tool/src/pe.rs @@ -196,7 +196,7 @@ fn stub_offset(binary: &Path) -> Result { let image_base = image_base(&pe); - // The Virtual Memory Addresss (VMA) is relative to the image base, aka the image base + // The Virtual Memory Address (VMA) is relative to the image base, aka the image base // needs to be added to the virtual address to get the actual (but still virtual address) Ok(u64::from( pe.sections