2020-01-08 17:42:09 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
let
|
|
|
|
shack-ip = config.krebs.build.host.nets.shack.ip4.addr;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
2023-06-10 10:50:53 +00:00
|
|
|
../../../krebs
|
|
|
|
../../../krebs/2configs
|
|
|
|
# ../../../krebs/2configs/secret-passwords.nix
|
2020-01-08 17:42:09 +00:00
|
|
|
|
2023-06-10 10:50:53 +00:00
|
|
|
# ../../../krebs/2configs/binary-cache/nixos.nix
|
|
|
|
# ../../../krebs/2configs/binary-cache/prism.nix
|
|
|
|
../../../krebs/2configs/shack/ssh-keys.nix
|
|
|
|
../../../krebs/2configs/shack/prometheus/node.nix
|
2020-01-08 17:42:09 +00:00
|
|
|
# provides access to /home/share for smbuser via smb
|
2023-06-10 10:50:53 +00:00
|
|
|
../../../krebs/2configs/shack/share.nix
|
2020-01-08 17:42:09 +00:00
|
|
|
{
|
|
|
|
fileSystems."/home/share" =
|
|
|
|
{ device = "/serve";
|
|
|
|
options = [ "bind" "nofail" ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
## Collect local statistics via collectd and send to collectd
|
2023-06-10 10:50:53 +00:00
|
|
|
# ../../../krebs/2configs/stats/shack-client.nix
|
|
|
|
# ../../../krebs/2configs/stats/shack-debugging.nix
|
2020-01-08 17:42:09 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
krebs.build.host = config.krebs.hosts.filebitch;
|
|
|
|
|
|
|
|
services.udev.extraRules = ''
|
|
|
|
SUBSYSTEM=="net", ATTR{address}=="60:a4:4c:3d:52:cf", NAME="et0"
|
|
|
|
'';
|
|
|
|
networking = {
|
|
|
|
firewall.enable = true;
|
2023-06-03 13:46:17 +00:00
|
|
|
interfaces.et0.useDHCP = true;
|
|
|
|
#interfaces.et0.ipv4.addresses = [
|
|
|
|
# {
|
|
|
|
# address = shack-ip;
|
|
|
|
# prefixLength = 20;
|
|
|
|
# }
|
|
|
|
#];
|
2020-01-08 17:42:09 +00:00
|
|
|
|
|
|
|
defaultGateway = "10.42.0.1";
|
|
|
|
nameservers = [ "10.42.0.100" "10.42.0.200" ];
|
|
|
|
};
|
|
|
|
}
|