Use options.c3d2 at hydra, pulsebert, storage-ng
This commit is contained in:
parent
5aef044fbd
commit
0ec4127225
|
@ -1,6 +1,7 @@
|
||||||
# Registry of C3D2 machines.
|
# Registry of C3D2 machines.
|
||||||
|
|
||||||
let hosts = [ "adc" "grafana" "server7" "tox" ];
|
let
|
||||||
|
hosts = [ "adc" "grafana" "hydra" "server7" "storage-ng" "pulsebert" "tox" ];
|
||||||
in {
|
in {
|
||||||
hqPublic = hosts;
|
hqPublic = hosts;
|
||||||
hqPrivate = hosts;
|
hqPrivate = hosts;
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
<nixpkgs/nixos/modules/profiles/minimal.nix>
|
<nixpkgs/nixos/modules/profiles/minimal.nix>
|
||||||
./hydra.nix
|
./hydra.nix
|
||||||
./cache.nix
|
./cache.nix
|
||||||
|
../../lib
|
||||||
../../lib/hq.nix
|
../../lib/hq.nix
|
||||||
../../lib/known-hosts.nix
|
../../lib/known-hosts.nix
|
||||||
../../lib/emery.nix
|
../../lib/emery.nix
|
||||||
|
@ -13,6 +14,12 @@
|
||||||
../../lib/tun.nix
|
../../lib/tun.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
c3d2 = {
|
||||||
|
isInHq = true;
|
||||||
|
mapHqHosts = true;
|
||||||
|
hq.interface = "eth0";
|
||||||
|
};
|
||||||
|
|
||||||
networking.interfaces.eth0.preferTempAddress = false;
|
networking.interfaces.eth0.preferTempAddress = false;
|
||||||
services.yggdrasil = {
|
services.yggdrasil = {
|
||||||
configFile = "/var/lib/yggdrasil/keys";
|
configFile = "/var/lib/yggdrasil/keys";
|
||||||
|
|
|
@ -11,6 +11,7 @@ in {
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
../../lib
|
||||||
../../lib/admins.nix
|
../../lib/admins.nix
|
||||||
../../lib/hq.nix
|
../../lib/hq.nix
|
||||||
../../lib/users.nix
|
../../lib/users.nix
|
||||||
|
@ -19,6 +20,12 @@ in {
|
||||||
../../lib/hail.nix
|
../../lib/hail.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
c3d2 = {
|
||||||
|
isInHq = true;
|
||||||
|
mapHqHosts = true;
|
||||||
|
hq.interface = "eno1";
|
||||||
|
};
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
|
@ -40,8 +40,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
services.collectd.extraConfig = ''
|
services.collectd.extraConfig = ''
|
||||||
LoadPlugin load
|
<Plugin "interface"/>
|
||||||
LoadPlugin interface
|
<Plugin "load"/>
|
||||||
'';
|
'';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
../../lib
|
||||||
../../lib/hq.nix
|
../../lib/hq.nix
|
||||||
../../lib/shared.nix
|
../../lib/shared.nix
|
||||||
../../lib/users.nix
|
../../lib/users.nix
|
||||||
|
@ -16,6 +17,12 @@
|
||||||
../../lib/default-gateway.nix
|
../../lib/default-gateway.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
c3d2 = {
|
||||||
|
isInHq = true;
|
||||||
|
mapHqHosts = true;
|
||||||
|
hq.interface = "eth0";
|
||||||
|
};
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
systemd = {
|
systemd = {
|
||||||
enableEmergencyMode = false;
|
enableEmergencyMode = false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user