refactor
This commit is contained in:
parent
4f6ed530db
commit
9b7ff29143
2 changed files with 4 additions and 4 deletions
|
@ -57,8 +57,8 @@ in
|
|||
clan.core.facts.services.zfs = factsGenerator.zfs { };
|
||||
networking.hostId = config.clan.core.facts.services.zfs.public."zfs.hostId".value;
|
||||
|
||||
systemd.network.networks."10-hetzner".networkConfig.Address = ipv6.address;
|
||||
boot.initrd.systemd.network.networks."10-hetzner" = config.systemd.network.networks."10-hetzner";
|
||||
systemd.network.networks."10-uplink".networkConfig.Address = ipv6.address;
|
||||
boot.initrd.systemd.network.networks."10-uplink" = config.systemd.network.networks."10-uplink";
|
||||
|
||||
# todo: use ssh component
|
||||
boot.initrd.kernelModules = [ networkInterfaceModule ];
|
||||
|
|
|
@ -3,14 +3,14 @@
|
|||
|
||||
# set up hetzner cloud network
|
||||
systemd.network.enable = true;
|
||||
systemd.network.networks."10-hetzner" = {
|
||||
systemd.network.networks."10-uplink" = {
|
||||
matchConfig.Name = "en*";
|
||||
networkConfig.DHCP = "ipv4";
|
||||
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-uplink" = config.systemd.network.networks."10-uplink";
|
||||
boot.initrd.availableKernelModules = [ "virtio_pci" ]; # network kernel module
|
||||
|
||||
# set up hetzner boot loader
|
||||
|
|
Loading…
Reference in a new issue