Archived
add lsblk command
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user