wip (works with encryption)

This commit is contained in:
Ingolf Wagner 2024-08-07 21:32:49 +02:00
parent 6637450aa5
commit ab640e771a
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 8 additions and 6 deletions

View file

@ -12,11 +12,9 @@
components.nixos.boot.enable = true; components.nixos.boot.enable = true;
components.nixos.boot.ssh.enable = true; components.nixos.boot.ssh.enable = true;
components.nixos.boot.ssh.kernelModules = ["virtio_pci"];
networking.hostName = "probe"; networking.hostName = "probe";
users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJkqVvuJSvRMO5pG2CHNNBxjB7HlJudK4TQs3BhbOWOD" ]; users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJkqVvuJSvRMO5pG2CHNNBxjB7HlJudK4TQs3BhbOWOD" ];
users.users.root.initialPassword = "admin"; #users.users.root.initialPassword = "admin";
} }

View file

@ -1,15 +1,19 @@
{ config, ... }: { config, ... }:
{ {
systemd.network.enable = true;
# set up hetzner cloud network
systemd.network.enable = true;
systemd.network.networks."10-hetzner" = { systemd.network.networks."10-hetzner" = {
matchConfig.Name = "e*"; matchConfig.Name = "en*";
networkConfig.DHCP = "ipv4"; networkConfig.DHCP = "ipv4";
linkConfig.RequiredForOnline = "routable"; linkConfig.RequiredForOnline = "routable";
}; };
# set up hetzner cloud network during init
boot.initrd.systemd.network.networks."10-hetzner" = config.systemd.network.networks."10-hetzner"; boot.initrd.systemd.network.networks."10-hetzner" = config.systemd.network.networks."10-hetzner";
boot.initrd.availableKernelModules = [ "virtio_pci" ]; # network kernel module
# set up hetzner boot loader
boot.loader.grub = { boot.loader.grub = {
efiSupport = true; efiSupport = true;
efiInstallAsRemovable = true; efiInstallAsRemovable = true;