cfcosta on Nostr: Simplest deploy stack ever: nixos + nix-copy-closure and running an activation ...
Simplest deploy stack ever: nixos + nix-copy-closure and running an activation script. 30 or so lines of code to setup, less if you use morph[1] or something like that, and there you go. Everything just works, systemd takes care of starting and restarting, rollbacks are fairly easy to do, takes less than 30 seconds after build to run.
[1]:
https://github.com/DBCDK/morphPublished at
2023-02-27 13:34:12Event JSON
{
"id": "9034023ce5c581ae64825a74088058a3af9d0383eff7c6dd1d9b522eac13e2ef",
"pubkey": "cfa3df9203c440a5b94b1f863094e683412ce9d422a7f99c5346e43fe2001d92",
"created_at": 1677504852,
"kind": 1,
"tags": [],
"content": "Simplest deploy stack ever: nixos + nix-copy-closure and running an activation script. 30 or so lines of code to setup, less if you use morph[1] or something like that, and there you go. Everything just works, systemd takes care of starting and restarting, rollbacks are fairly easy to do, takes less than 30 seconds after build to run.\n\n[1]: https://github.com/DBCDK/morph",
"sig": "42603cfbfa67763fc2628dc2fd202e260d2ae22bc58278f9a91283ad2083959d371dfe6f86892fb8917b1e296b519056657db1d4c01b0e05bf617e5de0e3ea73"
}