diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2024-10-07 11:47:06 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2024-10-07 11:47:06 +0300 |
commit | 4547e75868cba2a265b78661ddc386b5e81c1bb0 (patch) | |
tree | 71924feb573c8af5030080fc007eee7bfbaabb20 /scripts/install.sh | |
download | nix-master.tar.gz nix-master.tar.bz2 nix-master.zip |
Diffstat (limited to 'scripts/install.sh')
-rwxr-xr-x | scripts/install.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/install.sh b/scripts/install.sh new file mode 100755 index 0000000..c809cc9 --- /dev/null +++ b/scripts/install.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +sudo -i + +# Partitioning, formatting and mounting +sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode zap_create_mount ./disko.nix + +# Installing +nixos-install --flake https://github.com/cu1ch3n/nixbook#nixbook --no-root-passwd + +# Setting up password files +mkdir -p /mnt/persist/passwordFiles +mkpasswd -m SHA-512 -s > /mnt/persist/passwordFiles/root +mkpasswd -m SHA-512 -s > /mnt/persist/passwordFiles/chen |