1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

feat: finish system bootstrapping with iso

This commit is contained in:
oddlama 2023-04-29 22:34:42 +02:00
parent c3141bf563
commit a90a8ee678
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
6 changed files with 33 additions and 21 deletions

View file

@ -1,6 +1,7 @@
{
config,
name,
pkgs,
...
}: {
rekey.secrets.initrd_host_ed25519_key.file = ../${name}/secrets/initrd_host_ed25519_key.age;
@ -20,8 +21,8 @@
# for the first time, and the secrets were rekeyed for the the new host identity.
system.activationScripts.agenixEnsureInitrdHostkey = {
text = ''
[[ -e ${rekey.secrets.initrd_host_ed25519_key.path} ]] \
|| ssh-keygen -t ed25519 -N "" -f ${rekey.secrets.initrd_host_ed25519_key.path}
[[ -e ${config.rekey.secrets.initrd_host_ed25519_key.path} ]] \
|| ${pkgs.openssh}/bin/ssh-keygen -t ed25519 -N "" -f ${config.rekey.secrets.initrd_host_ed25519_key.path}
'';
deps = ["agenixInstall"];
};

View file

@ -14,7 +14,7 @@
partitions = [
{
name = "efi";
start = "2048";
start = "0%";
end = "1GiB";
fs-type = "fat32";
bootable = true;