wip (works with encryption)
This commit is contained in:
parent
6637450aa5
commit
ab640e771a
2 changed files with 8 additions and 6 deletions
|
@ -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";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue