September 16th, 2024

NixOS Server Up in Minutes

Garnix enables rapid NixOS server deployment via flake.nix and git. Gabriel Volpe shares his experience with Plausible for web analytics, emphasizing secure secrets management and data persistence.

Read original articleLink Icon
NixOS Server Up in Minutes

Garnix has introduced a streamlined process for deploying NixOS servers in just minutes by utilizing a flake.nix configuration and a simple git push. Gabriel Volpe details his experience setting up a web analytics server using the open-source tool Plausible, which is GDPR-compliant and hosted in the EU. The setup involves configuring the Plausible service and nginx to manage web traffic, with PostgreSQL automatically configured for data storage. Volpe emphasizes the importance of managing secrets securely using the agenix module, which encrypts sensitive information. Continuous deployment can be enabled, allowing for automatic redeployment on commits to the main branch. However, he notes that persistence is crucial for maintaining data across deployments, which Garnix supports. The feature is currently in beta, and users are encouraged to provide feedback. Volpe concludes by praising Garnix for its innovative features that simplify hosting and deployment.

- Garnix allows quick deployment of NixOS servers using flake.nix and git.

- Plausible is chosen for web analytics due to its lightweight and GDPR-compliant nature.

- Secrets management is handled securely with the agenix module.

- Continuous deployment can be configured for automatic updates on code changes.

- Data persistence is supported to maintain continuity across server deployments.

Link Icon 3 comments
By @jesuslop - 7 months
I'm reading Ansible for devops (imperative, isn't it) but find declarative configuration management intriguing also. On paper NixOS premise is wow, super. But some random blogging say that not so much in real life. How's adoption/hurdles, in the field?
By @sandreas - 7 months
Ok, now with ZFS encrypted root and zfs-auto-snapshot please ;) Just kidding, great article, thank you.