Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.43 KB

README.md

File metadata and controls

39 lines (28 loc) · 1.43 KB

Bootstrap commands

sudo su
nix-env -iA nixos.git
git clone <url> /mnt/<path>
nixos-install --flake .#<host>  || in my case username
reboot

after first login

sudo rm -r /etc/nixos/configuration.nix / move build to desired location

rebuild config

sudo nixos-rebuild switch --flake ~/.flake/#bocmo

update flage dependancies

nix flake update sudo nixos-rebuild switch --flake ~/.flake/#vallium efibootmgr -c -d /dev/nvme0n1p4 -p 1 -L NixOS-boot -l '\EFI\NixOS-boot\grubx64.efi' sudo nixos-rebuild switch --impure --flake ~/.flake/#vallium

bootstrap TODO

curl -s https://raw.githubusercontent.com/bornav/.flake/main/deployment.sh | bash

curl -L https://raw.githubusercontent.com/bornav/.flake/main/deployment.sh | sh -s -- --daemon --yes

nix run --extra-experimental-features nix-command --extra-experimental-features flakes github:nix-community/nixos-anywhere -- --flake ~/.flake#dockeropen --vm-test

nix run github:nix-community/nixos-anywhere -- --flake ~/.flake#dockeropen root@10.2.11.33

nix run github:nix-community/nixos-anywhere -- --flake ~/.flake#dockeropen --arg disks '[ "/dev/sda" ]' root@10.2.11.33 #test

rebuild remote from local

sudo nixos-rebuild switch --flake ~/.flake#dockeropen --target-host nixbuilder_dockeropen

build from remote host only

sudo nixos-rebuild switch --flake ~/.flake#$flake_name --builders "ssh://nixbuilder_dockeropen" --build-host nixbuilder_dockeropen