diff options
| author | lassulus <lassulus@lassul.us> | 2017-07-12 19:11:29 +0200 |
|---|---|---|
| committer | lassulus <lassulus@lassul.us> | 2017-07-12 19:11:29 +0200 |
| commit | f5328676c347a2785d2084628ba40448ec2680e8 (patch) | |
| tree | 06046d7a2eed347cdd97a6bc81d6299500a3137f /tv/1systems/caxi | |
| parent | ed9aca322dbcd2fa0484edb22076a56f49781d75 (diff) | |
| parent | b4d3d6c7ab2ff197b6dc47f366f698fceeb88242 (diff) | |
Merge branch 'staging/source'
Diffstat (limited to 'tv/1systems/caxi')
| -rw-r--r-- | tv/1systems/caxi/config.nix | 25 | ||||
| -rw-r--r-- | tv/1systems/caxi/source.nix | 3 |
2 files changed, 28 insertions, 0 deletions
diff --git a/tv/1systems/caxi/config.nix b/tv/1systems/caxi/config.nix new file mode 100644 index 0000000..b136d1a --- /dev/null +++ b/tv/1systems/caxi/config.nix @@ -0,0 +1,25 @@ +{ config, ... }: + +with import <stockholm/lib>; + +{ + krebs.build.host = config.krebs.hosts.caxi; + + imports = [ + <stockholm/tv> + <stockholm/tv/2configs/hw/CAC-Developer-1.nix> + <stockholm/tv/2configs/fs/CAC-CentOS-7-64bit.nix> + <stockholm/tv/2configs/retiolum.nix> + ]; + + networking = let + inherit (config.krebs.build.host.nets.internet) ip4; + in { + interfaces.enp2s1.ip4 = singleton { + address = ip4.addr; + prefixLength = fromJSON (head (match ".*/([0-9]+)" ip4.prefix)); + }; + defaultGateway = head (match "([^/]*)\.0/[0-9]+" ip4.prefix) + ".1"; + nameservers = ["8.8.8.8"]; + }; +} diff --git a/tv/1systems/caxi/source.nix b/tv/1systems/caxi/source.nix new file mode 100644 index 0000000..bc875b7 --- /dev/null +++ b/tv/1systems/caxi/source.nix @@ -0,0 +1,3 @@ +import <stockholm/tv/source.nix> { + name = "caxi"; +} |
