1
0

pkgs/nixfiles: nixfiles-auto-install use custom nix config

This commit is contained in:
clerie 2023-10-21 01:11:44 +02:00
parent c68343dea7
commit d300f2cbe8

View File

@ -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