install.sh: add hardware-configuration stuff
This commit is contained in:
parent
362fdb41dd
commit
b8763c036c
1 changed files with 4 additions and 0 deletions
|
@ -32,7 +32,11 @@ sudo mkfs.ext4 $disk*1 || exit 1 # /dev/sda 1 or /dev/nvme0n1 p1 => *1 instead o
|
|||
echo "> formatted."
|
||||
sudo mount $disk*1 /mnt || exit 1
|
||||
echo "> mounted."
|
||||
echo "> generating config"
|
||||
sudo nixos-generate-config --root /mnt
|
||||
cd /mnt/etc/nixos
|
||||
echo -n "hostname: "
|
||||
sudo sed -i -E "s/^}\$/ boot.loader.grub.device = \"\/dev\/$disk\";\n networking.hostName = \"$(head -n1)\";\n}/" hardware-configuration.nix
|
||||
echo "> installing git"
|
||||
nix-env -i git > /dev/null || exit 1
|
||||
echo "> downloading tudbut/nix-setup"
|
||||
|
|
Loading…
Add table
Reference in a new issue