add lsblk command

This commit is contained in:
2026-07-15 10:29:49 +10:00
parent 9d2d460640
commit 96e8e39a45
+2 -1
View File
@@ -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