diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2024-10-10 11:35:30 +0530 | 
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-10-10 11:35:30 +0530 | 
| commit | 9cb4903aa9c90b7b0f88fe1f954e7474247c06d2 (patch) | |
| tree | 4e838b4f3bf89103b198544aa415606df6d97ebe /install.sh | |
| parent | 1f34404b653877e010332ae31de8ce07c541ef59 (diff) | |
(update): Install script, update btrfs erase script.
Diffstat (limited to 'install.sh')
| -rwxr-xr-x | install.sh | 14 | 
1 files changed, 14 insertions, 0 deletions
| diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..e3d8bbd --- /dev/null +++ b/install.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +MACHINE=x + +sudo mkdir -v /mnt/persist/system +sudo cp -rv * /mnt/config + +sudo nixos-generate-config --root /mnt --no-filesystems + +cd /mnt/config +sudo mv -v /mnt/etc/nixos/hardware-configuration.nix machines/$MACHINE/hardware-configuration.nix +sudo rm -rfv /mnt/etc + +sudo nixos-install --root /mnt --no-root-password --flake .#$MACHINE | 
