Clone directly to etc and install from there

This commit is contained in:
Hans Muendelein 2024-11-02 23:20:26 +01:00
parent cc72544e20
commit ad41bd1b2d
2 changed files with 6 additions and 1 deletions

View File

@ -26,5 +26,8 @@ then set the required crypt and root pw and start the installer script:
``` ```
nix-shell -E "import (builtins.fetchurl https://git.cluster.gay/hans/nixos-install/raw/branch/main/shell.nix)" nix-shell -E "import (builtins.fetchurl https://git.cluster.gay/hans/nixos-install/raw/branch/main/shell.nix)"
export CRYPT_PW="pol...."
#optionally set root disk if it is not /dev/nvme0n1
export ROOT_DISK=/dev/sd.....
``` ```

View File

@ -11,6 +11,7 @@ pkgs.mkShell {
shellHook = '' shellHook = ''
mkdir -p $HOME/.gnupg mkdir -p $HOME/.gnupg
mkdir -p /mnt/etc
echo "pinentry-program = ${pkgs.pinentry-curses}/bin/pinentry-curses" > $HOME/.gnupg/gpg-agent.conf echo "pinentry-program = ${pkgs.pinentry-curses}/bin/pinentry-curses" > $HOME/.gnupg/gpg-agent.conf
echo "enable-ssh-support" >> $HOME/.gnupg/gpg-agent.conf echo "enable-ssh-support" >> $HOME/.gnupg/gpg-agent.conf
@ -40,6 +41,7 @@ pkgs.mkShell {
# Clone the repository # Clone the repository
git clone ssh://git@git.cluster.gay:2222/hans/nix.git git clone ssh://git@git.cluster.gay:2222/hans/nix.git /mnt/
bash /mnt/etc/install.bash
''; '';
} }