updated install.sh
This commit is contained in:
parent
ddecbcd445
commit
b84cb45858
1 changed files with 8 additions and 2 deletions
10
install.sh
10
install.sh
|
|
@ -1,6 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ $# -ne 3 ]; then
|
||||
echo "Usage: $0 Disko Partiton Scheme, Disk to Partition, Flake Name"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
nix-env -iA nixos.git
|
||||
git clone https://git.skdevstudios.cloud/specCon18/nixos-config.git
|
||||
sudo nix run github:nix-community/disko -- --mode zap_create_mount /modules/disko/luks-lvm.nix --arg disks '[ "/dev/nvme0n1" ]'
|
||||
sudo nix run github:nix-community/disko -- --mode zap_create_mount /modules/disko/"$1" --arg disks '[ "'"$2"'" ]'
|
||||
nixos-generate-config --no-filesystems --root /mnt
|
||||
nixos-install --flake ./#creatorforge-framework
|
||||
nixos-install --flake ./#"$3"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue