From 96e8e39a451bb199e755cf5a5ad6b3450a8a49b0 Mon Sep 17 00:00:00 2001 From: beatzaplenty Date: Wed, 15 Jul 2026 10:29:49 +1000 Subject: [PATCH] add lsblk command --- installer.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer.nix b/installer.nix index 8419673..45674e1 100644 --- a/installer.nix +++ b/installer.nix @@ -15,7 +15,7 @@ imports = [ services.openssh.settings.PermitRootLogin = "yes"; environment.systemPackages = with pkgs; [ - git curl jq parted e2fsprogs btrfs-progs util-linux + git curl jq parted e2fsprogs btrfs-progs util-linux disko ]; # environment.etc."flake-url".text = "git+https://gitea.lan.ddnsgeek.com/beatzaplenty/nixos.git?ref=main#nixos"; @@ -88,6 +88,7 @@ fi # nixos-install --flake "''${FLAKE_BASE_URL}#''${choice}" --no-root-password --no-write-lock-file if nix eval --refresh --json --extra-experimental-features "flakes nix-command" "''${FLAKE_BASE_URL}#nixosConfigurations.''${choice}.config.disko.devices.disk.main.device" >/dev/null 2>&1; then + lsblk disko --mode destroy,format,mount \ --flake "''${FLAKE_BASE_URL}#''${choice}" else