nixos/modules/installer/cd-dvd/channel.nix: pin nixpkgs registry to pkgs.path via boot.postBootCommands
This commit is contained in:
parent
98ef945bc3
commit
2367007613
1 changed files with 4 additions and 0 deletions
|
@ -45,6 +45,10 @@ in
|
||||||
ln -s /nix/var/nix/profiles/per-user/root/channels /root/.nix-defexpr/channels
|
ln -s /nix/var/nix/profiles/per-user/root/channels /root/.nix-defexpr/channels
|
||||||
mkdir -m 0755 -p /var/lib/nixos
|
mkdir -m 0755 -p /var/lib/nixos
|
||||||
touch /var/lib/nixos/did-channel-init
|
touch /var/lib/nixos/did-channel-init
|
||||||
|
echo "pinning the nixpkgs registry entry to NixOS/Nixpkgs sources..."
|
||||||
|
${config.nix.package.out}/bin/nix \
|
||||||
|
--extra-experimental-features 'nix-command flakes' \
|
||||||
|
registry pin nixpkgs ${toString pkgs.path}
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue