diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-03-04 00:15:29 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-03-04 00:16:43 +0100 |
commit | 60183e9efbbe16e3c9a12f0f1daca377326e2a75 (patch) | |
tree | a3cbf95cc1438ea7131d1e5fe37b4245eb783acc | |
parent | 6f373fd16ec3d3f4a2acc90bd8fb4567b5978dfb (diff) |
Revert static configuration for redmoon network.
This reverts commit d64ed6fb4fd211f9690b359275371926246f4521. Since I have moved back to my new home, this is no longer needed. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
-rw-r--r-- | machines/dnyarri.nix | 2 | ||||
-rw-r--r-- | machines/mmrnmhrm.nix | 2 | ||||
-rw-r--r-- | redmoon-static.nix | 30 |
3 files changed, 2 insertions, 32 deletions
diff --git a/machines/dnyarri.nix b/machines/dnyarri.nix index cb1ef594..aca4d383 100644 --- a/machines/dnyarri.nix +++ b/machines/dnyarri.nix @@ -4,7 +4,7 @@ with pkgs.lib; with import ../lib; { - imports = [ ../common-workstation.nix ../redmoon-static.nix ]; + imports = singleton ../common-workstation.nix; nix.maxJobs = 8; diff --git a/machines/mmrnmhrm.nix b/machines/mmrnmhrm.nix index 9e7ca041..7f966c02 100644 --- a/machines/mmrnmhrm.nix +++ b/machines/mmrnmhrm.nix @@ -4,7 +4,7 @@ with pkgs.lib; with import ../lib; { - imports = [ ../common-workstation.nix ../redmoon-static.nix ]; + imports = singleton ../common-workstation.nix; nix.maxJobs = 2; diff --git a/redmoon-static.nix b/redmoon-static.nix deleted file mode 100644 index 225af8f1..00000000 --- a/redmoon-static.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ config, lib, ... }: - -let - hostMap = { - spaghetti.ipv4 = "192.168.1.1"; - mmrnmhrm.ipv4 = "192.168.1.20"; - dnyarri.ipv4 = "192.168.1.32"; - - mmrnmhrm.device = "enp4s0"; - dnyarri.device = "enp0s25"; - }; - - hostcfg = hostMap.${config.networking.hostName}; - -in { - # Workaround for my temporary stupid fscking non-IPv6 NAT gateway... - networking.domain = "redmoon"; - networking.nameservers = [ "212.18.0.5" "212.18.3.5" ]; - networking.defaultGateway = "192.168.1.1"; - networking.interfaces.${hostcfg.device} = { - ipAddress = hostcfg.ipv4; - prefixLength = 24; - }; - - networking.extraHosts = let - hostList = lib.mapAttrsToList (name: { ipv4, ... }: '' - ${ipv4} ${name} ${name}.redmoon - '') hostMap; - in lib.concatStrings hostList; -} |