summaryrefslogtreecommitdiff
path: root/bragi.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-06-13 18:28:11 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-06-13 18:28:11 +0200
commit6e0e0f90e44cc1be8b57700febbd03af0b083855 (patch)
tree0309efb97ab2504f487106d4b23ef0ca2a5c468a /bragi.nix
parent26ba8df52287d493a063da4a5b93455cb4cb5b82 (diff)
downloadnixos-6e0e0f90e44cc1be8b57700febbd03af0b083855.tar
nixos-6e0e0f90e44cc1be8b57700febbd03af0b083855.tar.gz
nixos-6e0e0f90e44cc1be8b57700febbd03af0b083855.tar.bz2
nixos-6e0e0f90e44cc1be8b57700febbd03af0b083855.tar.xz
nixos-6e0e0f90e44cc1be8b57700febbd03af0b083855.zip
disable wireless on bragi
Diffstat (limited to 'bragi.nix')
-rw-r--r--bragi.nix46
1 files changed, 0 insertions, 46 deletions
diff --git a/bragi.nix b/bragi.nix
index 9160a83b..bc74b231 100644
--- a/bragi.nix
+++ b/bragi.nix
@@ -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 = {