fix: assertions
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
f5659c14d8
commit
c3e19aae29
5 changed files with 15 additions and 4 deletions
|
|
@ -3,6 +3,5 @@
|
||||||
boot.loader.systemd-boot.enable = false;
|
boot.loader.systemd-boot.enable = false;
|
||||||
boot.loader.grub = {
|
boot.loader.grub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
efiSupport = false;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -126,8 +126,14 @@ in
|
||||||
|
|
||||||
boot.loader.grub = {
|
boot.loader.grub = {
|
||||||
device = disk1;
|
device = disk1;
|
||||||
|
version = 2;
|
||||||
|
zfsSupport = true;
|
||||||
|
efiSupport = true;
|
||||||
mirroredBoots = [
|
mirroredBoots = [
|
||||||
|
{
|
||||||
|
devices = [ disk1 ];
|
||||||
|
path = "/boot";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
devices = [ disk2 ];
|
devices = [ disk2 ];
|
||||||
path = "/boot-fallback";
|
path = "/boot-fallback";
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
boot.initrd.systemd.enable = true;
|
boot.initrd.systemd.enable = true;
|
||||||
boot.initrd.postDeviceCommands = lib.mkAfter "zfs mount -a";
|
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "none";
|
device = "none";
|
||||||
|
|
@ -13,6 +12,8 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/persist".neededForBoot = true;
|
||||||
|
|
||||||
environment.persistence."/persist" = {
|
environment.persistence."/persist" = {
|
||||||
directories = [
|
directories = [
|
||||||
"/etc/nixos"
|
"/etc/nixos"
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
systemd.network.networks."10-uplink".networkConfig.Address = config.networking.hyp-01.ipv6.address;
|
systemd.network.networks."10-uplink".networkConfig.Address = config.networking.hyp-01.ipv6.address;
|
||||||
|
|
||||||
boot.initrd.systemd.network.enable = true;
|
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 = {
|
boot.initrd.network = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -52,6 +52,9 @@
|
||||||
authorizedKeys = [
|
authorizedKeys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPnthKtz0fE4yQ/X10cJgKVCjYCNkRNoqV28xAhD7h2M cardno:22_498_026"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPnthKtz0fE4yQ/X10cJgKVCjYCNkRNoqV28xAhD7h2M cardno:22_498_026"
|
||||||
];
|
];
|
||||||
|
hostKeys = [
|
||||||
|
"/etc/secrets/initrd/ssh_host_ed25519_key"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,4 +17,6 @@ in
|
||||||
];
|
];
|
||||||
openssh.authorizedKeys.keys = [ sshKey ];
|
openssh.authorizedKeys.keys = [ sshKey ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.zsh.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue