Use options.c3d2 at hydra, pulsebert, storage-ng

This commit is contained in:
Ehmry - 2019-12-03 17:03:48 +01:00 committed by Astro
parent 5aef044fbd
commit 0ec4127225
5 changed files with 25 additions and 3 deletions

View File

@ -1,6 +1,7 @@
# Registry of C3D2 machines.
let hosts = [ "adc" "grafana" "server7" "tox" ];
let
hosts = [ "adc" "grafana" "hydra" "server7" "storage-ng" "pulsebert" "tox" ];
in {
hqPublic = hosts;
hqPrivate = hosts;

View File

@ -5,6 +5,7 @@
<nixpkgs/nixos/modules/profiles/minimal.nix>
./hydra.nix
./cache.nix
../../lib
../../lib/hq.nix
../../lib/known-hosts.nix
../../lib/emery.nix
@ -13,6 +14,12 @@
../../lib/tun.nix
];
c3d2 = {
isInHq = true;
mapHqHosts = true;
hq.interface = "eth0";
};
networking.interfaces.eth0.preferTempAddress = false;
services.yggdrasil = {
configFile = "/var/lib/yggdrasil/keys";

View File

@ -11,6 +11,7 @@ in {
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
../../lib
../../lib/admins.nix
../../lib/hq.nix
../../lib/users.nix
@ -19,6 +20,12 @@ in {
../../lib/hail.nix
];
c3d2 = {
isInHq = true;
mapHqHosts = true;
hq.interface = "eno1";
};
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;

View File

@ -40,8 +40,8 @@
};
services.collectd.extraConfig = ''
LoadPlugin load
LoadPlugin interface
<Plugin "interface"/>
<Plugin "load"/>
'';
}

View File

@ -8,6 +8,7 @@
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
../../lib
../../lib/hq.nix
../../lib/shared.nix
../../lib/users.nix
@ -16,6 +17,12 @@
../../lib/default-gateway.nix
];
c3d2 = {
isInHq = true;
mapHqHosts = true;
hq.interface = "eth0";
};
boot.loader.systemd-boot.enable = true;
systemd = {
enableEmergencyMode = false;