diff options
Diffstat (limited to 'bragi.nix')
-rw-r--r-- | bragi.nix | 46 |
1 files changed, 0 insertions, 46 deletions
@@ -26,27 +26,10 @@ in rec { | |||
26 | networking = { | 26 | networking = { |
27 | hostName = "bragi"; | 27 | hostName = "bragi"; |
28 | hostId = "2af11085"; | 28 | hostId = "2af11085"; |
29 | wireless = { | ||
30 | enable = true; | ||
31 | userControlled.enable = true; | ||
32 | }; | ||
33 | 29 | ||
34 | bridges = { | 30 | bridges = { |
35 | eth.interfaces = [ "enp1s0" "enp2s0" "enp3s0" ]; | 31 | eth.interfaces = [ "enp1s0" "enp2s0" "enp3s0" ]; |
36 | }; | 32 | }; |
37 | |||
38 | interfaces.eth = { | ||
39 | useDHCP = false; | ||
40 | ipv4.addresses = [ | ||
41 | { address = "10.141.4.1"; prefixLength = 24; } | ||
42 | ]; | ||
43 | }; | ||
44 | |||
45 | nat = { | ||
46 | enable = true; | ||
47 | externalInterface = "wlp4s0"; | ||
48 | internalInterfaces = [ "eth" ]; | ||
49 | }; | ||
50 | 33 | ||
51 | firewall.enable = false; | 34 | firewall.enable = false; |
52 | 35 | ||
@@ -56,35 +39,6 @@ in rec { | |||
56 | useSTARTTLS = true; | 39 | useSTARTTLS = true; |
57 | setSendmail = true; | 40 | setSendmail = true; |
58 | }; | 41 | }; |
59 | |||
60 | dhcpcd = { | ||
61 | enable = true; | ||
62 | extraConfig = '' | ||
63 | interface wlp4s0 | ||
64 | ipv6rs | ||
65 | ia_pd 1/::/64 eth/0/64 | ||
66 | ''; | ||
67 | }; | ||
68 | }; | ||
69 | |||
70 | services.dhcpd4 = { | ||
71 | enable = true; | ||
72 | interfaces = [ "eth" | ||
73 | ]; | ||
74 | |||
75 | machines = [ | ||
76 | { ethernetAddress = "e0:cb:4e:f7:10:3d"; hostName = "vali"; ipAddress = "vali.bragisheimr.yggdrasil"; } | ||
77 | ]; | ||
78 | |||
79 | extraConfig = '' | ||
80 | subnet 10.141.4.0 netmask 255.255.255.0 { | ||
81 | range 10.141.4.128 10.141.4.254; | ||
82 | option domain-name-servers 10.141.1.1, 8.8.8.8, 8.8.4.4; | ||
83 | option domain-name "bragisheimr.yggdrasil"; | ||
84 | option domain-search "asgard.yggdrasil", "yggdrasil"; | ||
85 | option routers 10.141.4.1; | ||
86 | } | ||
87 | ''; | ||
88 | }; | 42 | }; |
89 | 43 | ||
90 | nixpkgs = { | 44 | nixpkgs = { |