From d300f2cbe8cd079104b93da67cb7d056efe0b126 Mon Sep 17 00:00:00 2001 From: clerie Date: Sat, 21 Oct 2023 01:11:44 +0200 Subject: [PATCH] pkgs/nixfiles: nixfiles-auto-install use custom nix config --- pkgs/nixfiles/nixfiles-auto-install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/nixfiles/nixfiles-auto-install.sh b/pkgs/nixfiles/nixfiles-auto-install.sh index 7456b75..a095477 100644 --- a/pkgs/nixfiles/nixfiles-auto-install.sh +++ b/pkgs/nixfiles/nixfiles-auto-install.sh @@ -107,5 +107,7 @@ sed -i "s~# boot\.loader\.grub\.device = \"/dev/sda\";~boot\.loader\.grub\.devic echo "[I] Install NixOS" +export NIX_CONFIG=<(echo "experimental-features = flakes nix-command\nsubstituters = https://nix-cache.clerie.de\ntrusted-public-keys = nix-cache.clerie.de:bAt1GJTS9BOTcXFWj3nURrSlcjqikCev9yDvqArMP5g=\n" ) + nixos-install --flake "/mnt/etc/nixos#${hostname}" --root /mnt --no-root-password