Add ehmry to storage-ng

This commit is contained in:
Ehmry - 2020-01-26 12:22:10 +01:00
parent 65bff74538
commit 27df1c21ba
1 changed files with 10 additions and 6 deletions

View File

@ -4,7 +4,8 @@
{ config, pkgs, lib, strings, ... }: { config, pkgs, lib, strings, ... }:
{ let eth0 = "ens18";
in {
imports = [ # Include the results of the hardware scan. imports = [ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
../../lib ../../lib
@ -14,17 +15,18 @@
./ncdc.nix ./ncdc.nix
../../lib/mpd.nix ../../lib/mpd.nix
../../lib/default-gateway.nix ../../lib/default-gateway.nix
../../lib/emery.nix
]; ];
c3d2 = { c3d2 = {
isInHq = true; isInHq = true;
mapHqHosts = true; mapHqHosts = true;
hq.interface = "ens18"; hq.interface = eth0;
}; };
hq.yggdrasil = { hq.yggdrasil = {
enable = true; enable = true;
interface = "ens18"; interface = eth0;
}; };
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
@ -33,16 +35,18 @@
networking = { networking = {
hostName = "storage-ng"; hostName = "storage-ng";
# usePredictableInterfacenames = false; # usePredictableInterfacenames = false;
interfaces.ens18.ipv4.addresses = [{ interfaces.${eth0} = {
ipv4.addresses = [{
address = "172.22.99.20"; address = "172.22.99.20";
prefixLength = 24; prefixLength = 24;
}]; }];
interfaces.ens18.ipv6.addresses = [{ ipv6.addresses = [{
address = "2a02:8106:208:5201::20"; address = "2a02:8106:208:5201::20";
prefixLength = 64; prefixLength = 64;
}]; }];
};
defaultGateway.interface = "ens18"; defaultGateway.interface = eth0;
}; };