From d17b956f9426d18578c4fa3fb5ca8d8f9d98cef3 Mon Sep 17 00:00:00 2001 From: luojiyin Date: Thu, 5 Mar 2026 12:12:09 +0800 Subject: [PATCH 1/7] docs: fix typos in disko-images --- docs/disko-images.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/disko-images.md b/docs/disko-images.md index 7d1bd5b..6c111bd 100644 --- a/docs/disko-images.md +++ b/docs/disko-images.md @@ -8,7 +8,7 @@ Follow the steps below to generate disk images: 1. **Create a NixOS configuration that includes the disko and the disk configuration of your choice** -In the this example we create a flake containing a nixos configuration for +In this example we create a flake containing a nixos configuration for `myhost`. ```nix @@ -79,7 +79,7 @@ In the this example we create a flake containing a nixos configuration for They will have the same permissions but will be owned by root:root * --build-memory specify the amount of memory in MiB that gets allocated to the build VM - This can be useful if you want to build images with a more involed NixOS config + This can be useful if you want to build images with a more involved NixOS config The default is 1024 MiB ``` @@ -107,7 +107,7 @@ In the this example we create a flake containing a nixos configuration for disko.devices.disk..imageName = "nixos-x86_64-linux-generic-btrfs"; # Set your preferred name ``` - The image scirpt will produce `nixos-x86_64-linux-generic-btrfs.raw` instead of `.raw`. + The image script will produce `nixos-x86_64-linux-generic-btrfs.raw` instead of `.raw`. - For virtual drive use, define the image size in your Disko configuration: From bc23e2e89c9b49f8cebc54c3e3615bd1a57eaa5d Mon Sep 17 00:00:00 2001 From: luojiyin Date: Thu, 5 Mar 2026 12:13:07 +0800 Subject: [PATCH 2/7] docs: fix typo in interactive vm guide --- docs/interactive-vm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/interactive-vm.md b/docs/interactive-vm.md index 7048272..2e9e531 100644 --- a/docs/interactive-vm.md +++ b/docs/interactive-vm.md @@ -1,6 +1,6 @@ # Running Interactive VMs with `disko` -disko now exports its own flavor of interactive VMs (similiar to +disko now exports its own flavor of interactive VMs (similar to config.system.build.vm). Simply import the disko module and build the vm runner with: From f1bcd0707b02c333526b54d2aa88981c6a8df7e6 Mon Sep 17 00:00:00 2001 From: luojiyin Date: Thu, 5 Mar 2026 12:13:07 +0800 Subject: [PATCH 3/7] docs: fix typo in table to gpt guide --- docs/table-to-gpt.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/table-to-gpt.md b/docs/table-to-gpt.md index 35af377..bb81f6b 100644 --- a/docs/table-to-gpt.md +++ b/docs/table-to-gpt.md @@ -59,7 +59,7 @@ for example like this: ## Remediation -The new GPT layout (`type = "gpt"`) uses partlabels to realize the partiton +The new GPT layout (`type = "gpt"`) uses partlabels to realize the partition numbering. For this reason you have to manually set up partition labels, if you want to resolve this issue. From 8b94abcd238d33dc7020b3be96b3dccf97c252e3 Mon Sep 17 00:00:00 2001 From: luojiyin Date: Thu, 5 Mar 2026 12:13:08 +0800 Subject: [PATCH 4/7] fix: correct deprecation typo in lib default --- lib/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/default.nix b/lib/default.nix index 3e5476c..69295ab 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -903,7 +903,7 @@ let type = lib.types.str; description = '' The script to unmount (& destroy) all devices defined by disko.devices - Does not ask for confirmation! Depracated in favor of _destroy + Does not ask for confirmation! Deprecated in favor of _destroy ''; default = '' umount -Rv "${rootMountPoint}" || : From 6be2229087cdb3c3decbfb9c2513219f57fc1c3e Mon Sep 17 00:00:00 2001 From: luojiyin Date: Thu, 5 Mar 2026 12:13:08 +0800 Subject: [PATCH 5/7] fix: correct typo in disk image help text --- lib/make-disk-image.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/make-disk-image.nix b/lib/make-disk-image.nix index d1d8ba0..a9c732c 100644 --- a/lib/make-disk-image.nix +++ b/lib/make-disk-image.nix @@ -209,7 +209,7 @@ in They will have the same permissions but will be owned by root:root * --build-memory specify the amount of memory in MiB that gets allocated to the build VM - This can be useful if you want to build images with a more involed NixOS config + This can be useful if you want to build images with a more involved NixOS config The default is disko.memSize which defaults to ${builtins.toString options.disko.memSize.default} MiB USAGE } From 29d01f42458ab925439e7ec10f2b9c17cbd3526c Mon Sep 17 00:00:00 2001 From: luojiyin Date: Thu, 5 Mar 2026 12:13:09 +0800 Subject: [PATCH 6/7] test: fix typo in mkOverride comment --- lib/tests.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tests.nix b/lib/tests.nix index 9edd8d3..75d4374 100644 --- a/lib/tests.nix +++ b/lib/tests.nix @@ -192,7 +192,7 @@ let boot.swraid.mdadmConf = "PROGRAM ${pkgs.coreutils}/bin/true"; # grub will install to these devices, we need to force those or we are offset by 1 - # we use mkOveride 70, so that users can override this with mkForce in case they are testing grub mirrored boots + # we use mkOverride 70, so that users can override this with mkForce in case they are testing grub mirrored boots boot.loader.grub.devices = lib.mkOverride 70 testConfigInstall.boot.loader.grub.devices; assertions = [ From 089cf54ff388fe00f99485159894197fd1bc8077 Mon Sep 17 00:00:00 2001 From: luojiyin Date: Thu, 5 Mar 2026 12:13:10 +0800 Subject: [PATCH 7/7] fix: correct uncommitted spelling in release script --- scripts/create-release.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/create-release.nix b/scripts/create-release.nix index 10ad4d6..4dc4afe 100644 --- a/scripts/create-release.nix +++ b/scripts/create-release.nix @@ -43,9 +43,9 @@ writeShellApplication { fi # Ensure there are no uncommitted or unpushed changes - uncommited_changes=$(git diff --compact-summary) - if [[ -n "$uncommited_changes" ]]; then - echo -e "There are uncommited changes, exiting:\n''${uncommited_changes}" >&2 + uncommitted_changes=$(git diff --compact-summary) + if [[ -n "$uncommitted_changes" ]]; then + echo -e "There are uncommitted changes, exiting:\n''${uncommitted_changes}" >&2 exit 1 fi git pull https://github.com/nix-community/disko master