nix developnix-shellFollow the official manual
To check that the configuration is bootable, run:
nix run github:nix-community/nixos-anywhere -- --flake .#hostname --vm-testBoot the installer and change the root password, then run: Generate the hardware config:
nix run github:nix-community/nixos-anywhere -- --generate-hardware-config nixos-generate-config ./hosts/hostname/hardware-configuration.nix root@ipInstall:
nix run github:nix-community/nixos-anywhere -- --flake .#hostname root@ipnix build .#nixosConfigurations.rpi3.config.system.build.sdImageThis image can later be flashed with dd.
Install nix:
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- installAdd to ~/.config/nix/nix.conf:
experimental-features = nix-command flakesAnd then run:
nix run home-manager/master -- init --switch
mkdir ~/projects && cd ~/projects
git clone https://github.com/Toomoch/nixos-config.git && cd nixos-config
home-manager switch --flake .#usernameFor our hostname:
just rebuildFor a specific hostname:
just rebuild hostnameTo deploy:
just deploy hostnamejust revision