Execute this every time you make a change to the configuration
Default config is raiden, yours might change
nix run nix-darwin -- switch --flake .#sezer
Install the system
sudo nixos-rebuild switch --flake .#kaori
Install the system
sudo nixos-rebuild switch --flake .#tristan --impure
Add this cloud-config:
#cloud-config
runcmd:
- curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | PROVIDER=hetznercloud NIX_CHANNEL=nixos-unstable bash 2>&1 | tee /tmp/infect.log
Once the server is up, run:
nix-shell -p git
git clone https://github.com/yasinuslu/nix-config
cd nix-config
sudo nixos-rebuild switch --flake .#hetzner --impure
-
Some configurations and ideas are taken from vimjoyer/nixconf
-
The structure is heavily inspired by this amazing youtube video from @vimjoyer
First login:
gh auth login
Then set NIX_CONFIG
environment variable
export NIX_CONFIG="extra-access-tokens = github.com=$(gh auth token)"
Or even better
alias nix="NIX_CONFIG=\"extra-access-tokens = github.com=$(gh auth token)\" nix"
alias niv="NIX_CONFIG=\"extra-access-tokens = github.com=$(gh auth token)\" niv"