flake: document the weird importing
This commit is contained in:
parent
0b78df53be
commit
57d95dd298
|
@ -52,6 +52,9 @@
|
||||||
in import ./pkgs/overlay.nix pkgs pkgs;
|
in import ./pkgs/overlay.nix pkgs pkgs;
|
||||||
decl-host = { name, local, target }:
|
decl-host = { name, local, target }:
|
||||||
let
|
let
|
||||||
|
# XXX: we'd prefer to use `nixosSystem = (nixpkgsCompiledBy local).nixos`
|
||||||
|
# but it doesn't propagate config to the underlying pkgs, meaning it doesn't let you use
|
||||||
|
# non-free packages even after setting nixpkgs.allowUnfree.
|
||||||
nixosSystem = import ((nixpkgsCompiledBy local).path + "/nixos/lib/eval-config.nix");
|
nixosSystem = import ((nixpkgsCompiledBy local).path + "/nixos/lib/eval-config.nix");
|
||||||
in (nixosSystem {
|
in (nixosSystem {
|
||||||
# we use pkgs built for and *by* the target, i.e. emulation, by default.
|
# we use pkgs built for and *by* the target, i.e. emulation, by default.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user