fix: assertions

Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
Lander Van den Bulcke 2025-11-04 10:52:59 +01:00
parent f5659c14d8
commit c3e19aae29
Signed by: lander
GPG key ID: 0142722B4B0C536F
5 changed files with 15 additions and 4 deletions

View file

@ -3,6 +3,5 @@
boot.loader.systemd-boot.enable = false;
boot.loader.grub = {
enable = true;
efiSupport = false;
};
}

View file

@ -126,8 +126,14 @@ in
boot.loader.grub = {
device = disk1;
version = 2;
zfsSupport = true;
efiSupport = true;
mirroredBoots = [
{
devices = [ disk1 ];
path = "/boot";
}
{
devices = [ disk2 ];
path = "/boot-fallback";

View file

@ -1,7 +1,6 @@
{ lib, ... }:
{
boot.initrd.systemd.enable = true;
boot.initrd.postDeviceCommands = lib.mkAfter "zfs mount -a";
fileSystems."/" = {
device = "none";
@ -13,6 +12,8 @@
];
};
fileSystems."/persist".neededForBoot = true;
environment.persistence."/persist" = {
directories = [
"/etc/nixos"

View file

@ -41,7 +41,7 @@
systemd.network.networks."10-uplink".networkConfig.Address = config.networking.hyp-01.ipv6.address;
boot.initrd.systemd.network.enable = true;
boot.initrd.systemd.network.networks."10-uplink" = config.systemd.networks."10-uplink";
boot.initrd.systemd.network.networks."10-uplink" = config.systemd.network.networks."10-uplink";
boot.initrd.network = {
enable = true;
@ -52,6 +52,9 @@
authorizedKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPnthKtz0fE4yQ/X10cJgKVCjYCNkRNoqV28xAhD7h2M cardno:22_498_026"
];
hostKeys = [
"/etc/secrets/initrd/ssh_host_ed25519_key"
];
};
};

View file

@ -17,4 +17,6 @@ in
];
openssh.authorizedKeys.keys = [ sshKey ];
};
programs.zsh.enable = true;
}