summaryrefslogtreecommitdiff
path: root/bragi.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-15 17:10:05 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-15 17:10:05 +0200
commit6fefa0dd4777322f7bc0b111cd02988c8c9754ee (patch)
tree8d85ea170941b86f6f544150ff220c3c7006990c /bragi.nix
parent9b4d45fdf8375600f5a061384405784c29b41cd5 (diff)
downloadnixos-6fefa0dd4777322f7bc0b111cd02988c8c9754ee.tar
nixos-6fefa0dd4777322f7bc0b111cd02988c8c9754ee.tar.gz
nixos-6fefa0dd4777322f7bc0b111cd02988c8c9754ee.tar.bz2
nixos-6fefa0dd4777322f7bc0b111cd02988c8c9754ee.tar.xz
nixos-6fefa0dd4777322f7bc0b111cd02988c8c9754ee.zip
No dhcpd
Diffstat (limited to 'bragi.nix')
-rw-r--r--bragi.nix33
1 files changed, 1 insertions, 32 deletions
diff --git a/bragi.nix b/bragi.nix
index dd579070..a46f8378 100644
--- a/bragi.nix
+++ b/bragi.nix
@@ -27,9 +27,7 @@ in rec {
27 wireless.enable = true; 27 wireless.enable = true;
28 28
29 bridges = { 29 bridges = {
30 br0 = { 30 br0.interfaces = [ "enp1s0" "enp2s0" "enp3s0" "wlp4s0" ];
31 interfaces = [ "enp1s0" "enp2s0" "enp3s0" "wlp4s0" ];
32 };
33 }; 31 };
34 32
35 interfaces = (lib.genAttrs ["enp1s0" "enp2s0" "enp3s0"] { 33 interfaces = (lib.genAttrs ["enp1s0" "enp2s0" "enp3s0"] {
@@ -277,35 +275,6 @@ in rec {
277 esac 275 esac
278 ''; 276 '';
279 277
280 services.dhcpd4 = {
281 enable = true;
282 interfaces = [ "enp1s0"
283 ];
284 extraConfig = ''
285 option subnet-mask 255.255.255.0;
286 option domain-name-servers 10.141.1.1, 8.8.8.8, 8.8.4.4;
287 option domain-name "bragisheimr.yggdrasil";
288 option routers 10.141.4.1;
289 subnet 10.141.4.0 netmask 255.255.255.0 {
290 range 10.141.4.100 10.141.4.254;
291 }
292
293 group {
294 use-host-decl-names on;
295
296 host vali {
297 hardware ethernet e0:cb:4e:f7:10:3d;
298 fixed-address vali.bragisheimr.yggdrasil;
299 }
300
301 host printer {
302 hardware ethernet 30:cd:a7:b0:55:8d;
303 fixed-address printer.bragisheimr.yggdrasil;
304 }
305 }
306 '';
307 };
308
309 services.samba = { 278 services.samba = {
310 enable = true; 279 enable = true;
311 extraConfig = '' 280 extraConfig = ''