Comments (2)
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.
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)
- repl reflection HOT 2
- Document flakes usage
- Document the status of the project HOT 7
- `nixops deploy` fails with `error: attribute 'type' missing` HOT 1
- Nixpkgs marked poetry to be insecure (indirectly). HOT 1
- nixops check: `run-initramfs.mount [failed]`
- Configure black as pre-commit hook
- Documentation: How to specify nixopsConfiguration.default? HOT 2
- `Pseudo-terminal will not be allocated because stdin is not a terminal.` HOT 1
- README instructions not working HOT 1
- Hangs at `copying closure...` HOT 13
- Abstract out SSH configuration
- error: function 'mkPackageOption' called with unexpected argument 'nullable' HOT 4
- `resources.elasticIPs.<name>` not creating elastic IP
- installation fails when following the official guide HOT 2
- nixops deploys keys to root instead of `deployment.targetUser` HOT 2
- typeguard exception with deployment.keys HOT 14
- nixops closes SSH connection when running `nixops check` HOT 1
- Clarify the status of NixOps HOT 28
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixops.