Update bootstrap
This commit is contained in:
parent
62a90066b4
commit
5d1bc26388
@ -7,7 +7,6 @@ set -ex
|
|||||||
|
|
||||||
mkdir -p /mnt/home/balsoft/projects
|
mkdir -p /mnt/home/balsoft/projects
|
||||||
nixos-generate-config --root /mnt
|
nixos-generate-config --root /mnt
|
||||||
echo import /home/balsoft/projects/nixos-config \"$(hostname)\" > /mnt/etc/nixos/configuration.nix
|
|
||||||
cd /mnt/home/balsoft/projects
|
cd /mnt/home/balsoft/projects
|
||||||
[ -d nixos-config ] || git clone ssh://git@github.com/balsoft/nixos-config
|
[ -d nixos-config ] || git clone ssh://git@github.com/balsoft/nixos-config
|
||||||
cd nixos-config
|
cd nixos-config
|
||||||
@ -43,4 +42,4 @@ mount --rbind /mnt/nix /nix
|
|||||||
nix build -f /tmp/nixpkgs/nixos system --substituters "https://cache.balsoft.ru https://cache.nixos.org" --no-require-sigs
|
nix build -f /tmp/nixpkgs/nixos system --substituters "https://cache.balsoft.ru https://cache.nixos.org" --no-require-sigs
|
||||||
nixos-install --system ./result
|
nixos-install --system ./result
|
||||||
cd /mnt/home/balsoft
|
cd /mnt/home/balsoft
|
||||||
chmod 777 -R .
|
chown 1000:100 . -R
|
||||||
|
Loading…
Reference in New Issue
Block a user