@domenkozar / NixCon 2022
$ vim /etc/nixos/configuration.nix
$ nixos-rebuild switch
$ vim mymachine.nix
$ git commit && git push
1. Build Nix derivations
2. Push to a binary cache
3. Deploy!
cachix deploy agent myagent [nix-profile]
cachix deploy agent myagent --bootstrap
(nix-darwin installation just works)!
{
"agents": {
"myagent": "/nix/store/...-nixos-system-myagent-22.05"
},
"rollbackScript": {
"x86_64-linux": "/nix/store/...-rollback.sh"
}
}OCEANSPRINT.ORG
domen@cachix.org / @domenkozar
Pricing: the first 10 agents are free.