4 ms·
nixos-anywhere and some flakes is all i need! sometimes for new setups I'll run nixos-anywhere and write the config directly on the machine, but that's usually
by r14c 2y ago
nixos-anywhere and some flakes is all i need! sometimes for new setups I'll run nixos-anywhere and write the config directly on the machine, but that's usually just for sketching out ideas. I'll reprovision with a module after I've worked out the kinks.
- inhumantsar 2y agoI just transitioned my home and homelab PCs to nixos+anywhere+flakes and I can't imagine going back to ansible or puppet or even docker compose. you know that it won't drift. you can generate images from the same config you apply to a host. you can stamp out the same config across N hosts. you can completely reconfigure a host without reprovisioning it from scratch. you can run slim VMs by mounting the nix store as read only. it would be great to run an entire company off nixos this way
- drcongo 2y agoI recently started using devbox over homebrew for package installs on my Mac and this has gotten me more interested in nix - however, neither of the VPS providers we use offer NixOS as an OS option, is there a way to achieve that declarative setup on Ubuntu?
- r14c 2y agothe magic of nixos-anywhere is that you can start with a common OS base image and overwrite it with nixos. you can also run nix as a service on other operating systems. https://lix.systems/install/#on-any-other-linuxmacos-system https://lix.systems/install/#on-any-other-linuxmacos-system
- mdaniel 2y agoI had high hopes, but it's obviously designed for less paranoid consumers since executing the verb "plan" is all "ya, fam, but I'm gonna need to be root to tell you what I'm gonna do" `lix-installer` needs to run as `root`, attempting to escalate now via `sudo`... TRACE execute:execute: lix_installer::cli: Execvp'ing `"sudo"` with args `["sudo", "env", "SHELL=/usr/local/bin/bash", "./lix-installer", "-vvvv", "--logger=full", "plan"]` I guess I'll have to patch the source to have it tell me why it wants unrestricted access just to tell me what it is going to do
- drcongo 2y agoExcellent, thanks. I'll do some reading!