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:
parent
c3141bf563
commit
a90a8ee678
6 changed files with 33 additions and 21 deletions
|
@ -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"];
|
||||
};
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
partitions = [
|
||||
{
|
||||
name = "efi";
|
||||
start = "2048";
|
||||
start = "0%";
|
||||
end = "1GiB";
|
||||
fs-type = "fat32";
|
||||
bootable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue