about summary refs log tree commit diff
path: root/nixos/modules/installer
diff options
context:
space:
mode:
authormatthewcroughan <matt@croughan.sh>2022-08-31 14:38:37 +0100
committermatthewcroughan <matt@croughan.sh>2022-09-26 16:23:48 +0100
commit31dbd4cb91968ac645f48c6804271b54d12cf37d (patch)
tree658cc446f523740a5b5e5b4ed51740eb02c1f6d8 /nixos/modules/installer
parent2367007613f53172caedd0e958506b7f2fc3a36d (diff)
nixos/modules/installer/cd-dvd/channel.nix: pin nixpkgs registry to pkgs.path via nix.settings.registry
Diffstat (limited to 'nixos/modules/installer')
-rw-r--r--nixos/modules/installer/cd-dvd/channel.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/nixos/modules/installer/cd-dvd/channel.nix b/nixos/modules/installer/cd-dvd/channel.nix
index 159a9ca28c3ee..9893f5aa7dcb0 100644
--- a/nixos/modules/installer/cd-dvd/channel.nix
+++ b/nixos/modules/installer/cd-dvd/channel.nix
@@ -31,6 +31,7 @@ let
 in
 
 {
+  nix.registry.nixpkgs.flake.outPath = pkgs.path;
   # Provide the NixOS/Nixpkgs sources in /etc/nixos.  This is required
   # for nixos-install.
   boot.postBootCommands = mkAfter
@@ -45,10 +46,6 @@ in
         ln -s /nix/var/nix/profiles/per-user/root/channels /root/.nix-defexpr/channels
         mkdir -m 0755 -p /var/lib/nixos
         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
     '';
 }