Giter Site home page Giter Site logo

How does nixops work? about nixops HOT 2 OPEN

thkoch2001 avatar thkoch2001 commented on June 12, 2024
How does nixops work?

from nixops.

Comments (2)

roberth avatar roberth commented on June 12, 2024

I'm new to nixops and want to understand how it works before investing more time in it. Is there already such Documentation? If so, please make it easier to find! Thanks!

The documentation has been stripped down since the separation into plugins.

But nonetheless, documentation exists

  • What are the steps that happen in the background when Nixops sets up a machine?

Depends on the chosen backend. If "none", it just expects to be able to ssh into it. Cloud backends will create a VM.

  • How does Nixops compare the current vs. the defined state and how does it correct any difference?

Depends on the backend, but I think there's more to say. This answer should be elaborated on if it isn't already in the docs.

As for the NixOS part of the deployment, it leaves that to NixOS and its activation script.

  • Is there a way that Nixops would continuously make the above comparison and correction?

nixops deploy is idempotent, so you could run it in a loop. This might be useful to recover from some very rare failures. Without a deployment model that takes more of the "environment" into account, such as system load, operating like this isn't super useful.

  • Is it correct, that Nixops main mode of operation is to build an image (locally) and than deploys it to target machines?

If I read this literally, not correct. It generally boots a very basic image, which is then customized by pushing a NixOS system closure to it.
You could work with your own image, but the image is only relevant for first boot.

Maybe by "image" you referred to the system closure? It's the Nix equivalent of an image, but it's rarely if ever serialized into a byte stream like typical images are.

from nixops.

JustinLovinger avatar JustinLovinger commented on June 12, 2024

Most of your questions are better answered by looking into NixOS than NixOps. Long-story-short, NixOps is a tool to push NixOS deployments, while NixOS is a reproducible, declarative, reliable Linux distribution. All the handling of state, dependencies, building, system configuration, etc. are done by NixOS.

from nixops.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.