Repository navigation
nixos/nix-daemon: Add enable option - #120565
Merged
Merged
Conversation
Contributor
|
I love the concept of this - I've been toying with this idea myself as well. Being able to build a NixOS image using Nix but without Nix in the runtime closure is a super interesting idea. |
Member
Author
|
Ugh, i forgot about |
Ericson2314
force-pushed
the
nixos-without-nix
branch
from
April 25, 2021 03:46
221294b to
77090ad
Compare
Contributor
|
Is the |
Member
Author
|
@tomberek Well we aren't removing it, but just trying to make sure it isn't used. But maybe we are disciplined about only getting packages from the nixpkgs's |
roberth
reviewed
Apr 28, 2021
Ericson2314
force-pushed
the
nixos-without-nix
branch
from
October 6, 2021 20:13
77090ad to
681c715
Compare
roberth
reviewed
Oct 6, 2021
Don't worry, it's is true by default. But I think this is important to have because NixOS indeed shouldn't need Nix at run time when the installation is not being modified, and now we can verify that. NixOS images that cannot "self-modify" are a legitamate use-case that this supports more minimally. One should be able to e.g. do a sshfs mount and use `nixos-install` to modify them remotely, or just discard them and build fresh ones if they are run VMs or something. The next step would be to make generations optional, allowing just baking `/etc` and friends rather than using activation scripts. But that's more involved so I'm leaving it out.
Ericson2314
force-pushed
the
nixos-without-nix
branch
from
October 6, 2021 20:45
51017cd to
cc3f243
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation for this change
Don't worry, it's is true by default. But I think this is important to
have because NixOS indeed shouldn't need Nix at run time when the
installation is not being modified, and now we can verify that.
NixOS images that cannot "self-modify" are a legitamate
use-case that this supports more minimally. One should be able to e.g. do a
sshfs mount and use
nixos-installto modify them remotely, or justdiscard them and build fresh ones if they are run VMs or something.
The next step would be to make generations optional, allowing just
baking
/etcand friends rather than using activation scripts. Butthat's more involved so I'm leaving it out.
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)nix path-info -Sbefore and after)