@@ -54,7 +54,7 @@ set_password_file() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ln -sf "$password_file" /tmp/installer.key
|
||||
ln -sf "$(realpath "$password_file")" /tmp/installer.key
|
||||
else
|
||||
echo "Enter password for LUKS encryption:"
|
||||
IFS= read -r -s password
|
||||
@@ -68,6 +68,7 @@ set_password_file() {
|
||||
|
||||
prepare_disk() {
|
||||
local disko_mode="$1"
|
||||
mkdir -p /mnt
|
||||
root=$(mktemp -d /mnt/install.XXXXXX)
|
||||
disko -m "$disko_mode" --yes-wipe-all-disks --root-mountpoint "$root" "$flake/hosts/$host/format.nix" --arg device "\"$device\""
|
||||
}
|
||||
|
@@ -42,5 +42,5 @@
|
||||
sops.defaultSopsFile = ./secrets/secrets.yaml;
|
||||
|
||||
environment.impermanence.device =
|
||||
config.disko.devices.disk.usb.content.partitions.root.content.name;
|
||||
config.disko.devices.disk.installer.content.partitions.root.content.name;
|
||||
}
|
||||
|
@@ -4,7 +4,7 @@
|
||||
}:
|
||||
{
|
||||
disko.devices = {
|
||||
disk.usb = {
|
||||
disk.installer = {
|
||||
inherit device;
|
||||
type = "disk";
|
||||
content = {
|
||||
@@ -30,7 +30,7 @@
|
||||
name = "root";
|
||||
size = "100%";
|
||||
content = {
|
||||
name = "usb";
|
||||
name = "installer";
|
||||
type = "luks";
|
||||
passwordFile = "/tmp/installer.key";
|
||||
settings = {
|
||||
|
@@ -15,6 +15,7 @@ in
|
||||
(import ../../../common/configs/user/console/git { inherit user home; })
|
||||
(import ../../../common/configs/user/console/gpg-agent { inherit user home; })
|
||||
(import ../../../common/configs/user/console/home-manager { inherit user home; })
|
||||
(import ../../../common/configs/user/console/jq { inherit user home; })
|
||||
(import ../../../common/configs/user/console/lsof { inherit user home; })
|
||||
(import ../../../common/configs/user/console/ncdu { inherit user home; })
|
||||
(import ../../../common/configs/user/console/neovim { inherit user home; })
|
||||
|
Reference in New Issue
Block a user