]> Git — Sourcephile - sourcephile-nix.git/blob - servers/mermet/localhost.nix
nix: fix nix install versioning
[sourcephile-nix.git] / servers / mermet / localhost.nix
1 { pkgs, lib, config, options, nodes, ... }:
2 let ipv4 = if options.networking.privateIPv4.isDefined
3 then config.networking.privateIPv4
4 else "X.X.X.X";
5 in
6 {
7 }
8 // lib.mkIf (builtins.hasAttr "mermet" nodes) {
9 networking = {
10 interfaces."enp0s8" = {
11 #macAddress = "00:11:22:33:44:55";
12 #ipv4.addresses = [ { address = ipv4; prefixLength = 32; } ];
13 ipv6.addresses = [ { address = "fe80::1"; prefixLength = 10; } ];
14 };
15 };
16 }