Skip to content

nikil0dion/nix-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nix-server

Minimal NixOS server configuration.

Setup

  1. Add SSH key:
# configuration.nix
users.users.deploy.openssh.authorizedKeys.keys = [
  "ssh-ed25519 AAAA..."
];
  1. Check disk device in disko.nix (default: /dev/sda, change to /dev/vda or /dev/nvme0n1 if needed)

Deploy

nix run github:nix-community/nixos-anywhere -- --flake .#server root@<IP>

Update

nixos-rebuild switch --flake .#server \
  --target-host root@<IP> \
  --build-host localhost

Post-deploy

ssh root@<IP> tailscale up

License

MIT

About

Minimal NixOS server configuration.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages