惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - Franky
D
Docker
Jina AI
Jina AI
The GitHub Blog
The GitHub Blog
博客园 - 聂微东
B
Blog RSS Feed
大猫的无限游戏
大猫的无限游戏
M
MIT News - Artificial intelligence
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
博客园 - 叶小钗
爱范儿
爱范儿
D
DataBreaches.Net
Hugging Face - Blog
Hugging Face - Blog
IT之家
IT之家
Recent Announcements
Recent Announcements
U
Unit 42
腾讯CDC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
宝玉的分享
宝玉的分享
量子位
Stack Overflow Blog
Stack Overflow Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Azure Blog
Microsoft Azure Blog

Null's blog

Switching to harper-ls Switching to harper-ls Thinking long term; A weird story Thinking long term; A weird story The case against WebUsb The case against WebUsb Why Wayland is the future. Why Wayland is the future. Debugging a crashed kernel on opensuse Debugging a crashed kernel on opensuse Envisioning a future python Envisioning a future python server update, A new name, comments via firefish and lightmode server update, A new name, comments via firefish and lightmode A look back at the webserver A look back at the webserver Webserver Updates Webserver Updates Migrating to a custom blogging backend Migrating to a custom blogging backend Nixops to Deploy-rs Nixops to Deploy-rs Archlinux with secureboot on a nvidia machine Archlinux with secureboot on a nvidia machine Nixops the future of deploying applications? Installing NixOS on a Running Install of Arch Linux Installing NixOS on a Running Install of Arch Linux Why you should use Neovim Why you should use Neovim Flatpaking Github Desktop Pt2: GPG
Nixops the future of deploying applications?
nullrequest · 2022-02-20 · via Null's blog

After my last post I migrated the blog over to nixos, Over the past few weeks I discovered nixops a terraform like tool for orchestrating and managing vms, google cloud platforms, aws container, preconfigured nixos systems, and a large list of other vps providers. Nixops allows you to define and manage your infrastructure in nix, in function it is quite similar to terraform which allows you to define your infrastructure in HasiCorp lang.

Nixops is very unique in that rather then defining a series of actions which are not deterministic(in other words will not be the same if you reapte then enough), it defines a state the target machine should be, nix the package manager of nixos the computes what changes should occur to the currently running system to reach the state that is required.

So why is nixops "the future of deploying applications"? It comes down to 1 factor. Everything written in nix is deterministic, being able to define once and deploy a hundered times is the dream of large corps and single man dev teams alike. One of the most common complaints you'll here when working with others is "but it works on my machine" and thats true, it probably does but every system is unique, something as simple as a library being compiled without a feature can break everything.

Nix takes the diffrence out of the equation it can ensure 2 install of nix are exactly the same down to even configuration of software and service startup order. One of the bigger issues server admins face is that Docker/OCI containers are not reproducible and often simply stop working due to issues with the image. Nix solves these issues elegantly, if you wish to read about this more I recommend this blog post by David Wagner about this.

So whats the catch with nix/nixops? Its poorly documented, you'll often find users using undocumented features or documentation scratching the bare minimum of using a tool. I've found that Xe Iaso's blog to often document issues, solutions and applications better then the official documentation. While work is being done towards better documenting nix, unfortunately all most all nix documentation requires a understanding of Nix Lang which isn't exactly conventional.

However things are getting better, work is being done improving documentation and bug's are fixed at a high rate. With that said until we do have better documentation for most developers starting with [nix pills)(https://nixos.org/guides/nix-pills/index.html) is the best way to learn nix. From there most documentation makes sense. If you don't get how something works don't hesitate to ask in the official matrix.

-- nullrequest signing off