From 360d0d4f461505f34ac847174b91a31af0544bac Mon Sep 17 00:00:00 2001 From: beatzaplenty Date: Mon, 21 Jul 2025 01:32:06 +1000 Subject: [PATCH] modified: auto-installer/installer.nix --- auto-installer/installer.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/auto-installer/installer.nix b/auto-installer/installer.nix index 166c4bd..56c4efc 100644 --- a/auto-installer/installer.nix +++ b/auto-installer/installer.nix @@ -34,6 +34,11 @@ environment.etc."git-credentials".text = description = "Automatic NixOS installation"; wantedBy = [ "multi-user.target" ]; after = [ "network-online.target" ]; + path = [ + pkgs.parted + pkgs.util-linux + pkgs.e2fsprogs + ]; serviceConfig = { Type = "oneshot"; ExecStart = pkgs.writeShellScript "auto-install.sh" '' @@ -57,10 +62,15 @@ environment.etc."git-credentials".text = #mount nixos partition mount /dev/disk/by-label/nixos /mnt + # Choose a disk-backed temp directory + mkdir -p /mnt/install-tmp + export TMPDIR=/mnt/install-tmp + nixos-install --flake "$(cat /etc/flake-url)" --no-root-password + rm -r /mnt/install-tmp sleep 10 reboot ''; - }; + }; }; }