Skip to content

Straightforward SSH-based bootstrapping of and deployment to nixOS machines

Notifications You must be signed in to change notification settings

jbuchermn/nixos-simple-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nixos-simple-deploy

A small helper script to manage nixOS deployments via SSH and git. This doesn't rely on nix-instantiate or nix-copy-closure, instead building the config is done completely on the deployment target.

Simple setup

Start a VM running the NixOS live iso, set a root password, note the IP.

cd my-deployment
git init
nixos-simple-deploy 192.168.x.y bootstrap deployment-hostname -p the-password -P desired-root-password -f
nixos-simple-deploy 192.168.x.y store-key
nixos-simple-deploy 192.168.x.y create
vim flake.nix  # place your desired server config
git commit -am'Initial deployment'
nixos-simple-deploy 192.168.x.y deploy

About

Straightforward SSH-based bootstrapping of and deployment to nixOS machines

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published