From ad41bd1b2d50e964f78cad704611b14e3aaff208 Mon Sep 17 00:00:00 2001 From: Hans Muendelein Date: Sat, 2 Nov 2024 23:20:26 +0100 Subject: [PATCH] Clone directly to etc and install from there --- README.md | 3 +++ shell.nix | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8d4283d..84b3bb5 100644 --- a/README.md +++ b/README.md @@ -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)" +export CRYPT_PW="pol...." +#optionally set root disk if it is not /dev/nvme0n1 +export ROOT_DISK=/dev/sd..... ``` diff --git a/shell.nix b/shell.nix index 6613a8c..6631f45 100644 --- a/shell.nix +++ b/shell.nix @@ -11,6 +11,7 @@ pkgs.mkShell { shellHook = '' mkdir -p $HOME/.gnupg + mkdir -p /mnt/etc echo "pinentry-program = ${pkgs.pinentry-curses}/bin/pinentry-curses" > $HOME/.gnupg/gpg-agent.conf echo "enable-ssh-support" >> $HOME/.gnupg/gpg-agent.conf @@ -40,6 +41,7 @@ pkgs.mkShell { # 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 ''; }