1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/configs/retiolum.nix

26 lines
612 B
Nix
Raw Normal View History

2019-01-30 10:58:34 +01:00
{ config, pkgs, ... }:
let retiolumKey = (import ../secrets.nix).retiolum.privateKey;
2018-12-04 21:08:12 +01:00
in {
2019-01-30 10:58:34 +01:00
imports = [ ../modules/retiolum.nix ];
2018-12-04 21:08:12 +01:00
2019-01-30 10:58:34 +01:00
networking.hosts = {
"42:0:ca48:f98f:63d7:31ce:922b:245d" = [ "go" ];
};
2018-12-04 21:08:12 +01:00
2019-01-30 10:58:34 +01:00
networking.retiolum = {
scardanelli = {
ipv4 = "10.243.2.2";
ipv6 = "42:0:3c46:4007:5bce:f1bc:606b:2b18";
2018-12-04 21:08:12 +01:00
};
2019-01-30 10:58:34 +01:00
homeros = {
ipv4 = "10.243.2.1";
ipv6 = "42:0:3c46:53e:e63d:e62a:56ea:c705";
2018-12-04 21:08:12 +01:00
};
2019-01-30 10:58:34 +01:00
}.${config.networking.hostName};
2019-01-08 18:22:54 +01:00
2019-01-30 10:58:34 +01:00
environment.etc."tinc/retiolum/rsa_key.priv" = {
text = retiolumKey.${config.networking.hostName};
mode = "400";
};
2018-12-04 21:08:12 +01:00
}