Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The nix overlay with storeDir, stateDir #4

Open
PedroRegisPOAR opened this issue Jul 28, 2021 · 1 comment
Open

The nix overlay with storeDir, stateDir #4

PedroRegisPOAR opened this issue Jul 28, 2021 · 1 comment

Comments

@PedroRegisPOAR
Copy link
Contributor

PedroRegisPOAR commented Jul 28, 2021

Nixpkgs Overlays – A place for all excluded packages by Nicolas B. Pierron (NixCon 2017), start=467 end=501

TODO: .override this

nix show-derivation nixpkgs#nix | jq '.[]."env"."configureFlags"'

NixOS/nix#585

NixOS/nix@2a9fddc

https://rgoswami.me/posts/local-nix-no-root/#patches

https://nixos.org/manual/nixpkgs/stable/#chap-overlays

https://github.com/NixOS/nixpkgs/blob/79c7b6a353e22f0eec342dead0bc69fb7ce846db/nixos/modules/services/misc/nix-daemon.nix#L75-L76

nix in custom location

https://gist.github.com/eqyiel/64007446616e412229fbfa07b6eef873

https://blog.flyingcircus.io/2017/11/07/nixos-the-dos-and-donts-of-nixpkgs-overlays/

https://discourse.nixos.org/t/why-the-overlays-defined-in-flake-nix-must-use-final-and-prev-as-arguments/9740/5

https://www.reddit.com/r/NixOS/comments/64ndq8/what_if_i_cant_create_nix_apologies_if_faq/dg4u8p3/?utm_source=reddit&utm_medium=web2x&context=3

NixOS/nix#1559

NixOS/nixpkgs#144197 (comment)

https://github.com/nix-community/nix-user-chroot

NixOS/nix#2764

nix repl --expr 'import <nixpkgs> {}' <<<'builtins.storeDir'

nix eval --raw --expr 'builtins.storeDir'

https://github.com/NixOS/nixpkgs/blob/cc5f7c2f3dd3a288c540c287c7788242a2b557c5/nixos/modules/virtualisation/qemu-vm.nix#L131

I remember doing this a couple of years ago. I think this can be compared to bootstrapping a compiler toolchain on a new target. The point being that the nix that you built is only half way. It will “live” in /nix/store but know how to build for /foo. You will need to build a third nix using that second nix that will live in /foo and build for /foo.
Knedlsepp in discourse.nixos

TODO:

@Aleksanaa
Copy link

Any news on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants