3 ms·
Do I understand correctly that NixOS is a layer on top of a standard Linux distribution? I’m a bit familiar with nix the command line tool (just a bit). Given t
by dgellow 6y ago
Do I understand correctly that NixOS is a layer on top of a standard Linux distribution? I’m a bit familiar with nix the command line tool (just a bit). Given the name NixOS I expected it to be its own distribution. Is it instead a set of tools (nix package manager) and abstractions?
- psibi 6y agoIt isn't built on top of a Debian or a rpm based distro. It is a separate distribution itself: https://nixos.org/ https://nixos.org/ But you can try it's package manager nix and it's package set nixpkgs in any other Linux distribution.
- geofft 6y agoIt is its own distribution - but like Nix itself, it installs just about everything into /nix. That means you can bootstrap it on another distribution as described here: https://nixos.org/manual/nixos/stable/#sec-installing-from-other-distro https://nixos.org/manual/nixos/stable/#sec-installing-from-o... > Because Nix (the package manager) & Nixpkgs (the Nix packages collection) can both be installed on any (most?) Linux distributions, they can be used to install NixOS in various creative ways. You can, for instance: > 2. Install NixOS on the same partition (in place!), from your existing non-NixOS Linux distribution using NIXOS_LUSTRATE. > /etc/NIXOS_LUSTRATE tells the NixOS bootup scripts to move everything that's in the root partition to /old-root. This will move your existing distribution out of the way in the very early stages of the NixOS bootup. which is what the nixos-infect script does, because DO doesn't have native NixOS images.