summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bragi.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/bragi.nix b/bragi.nix
index 9626c5ba..3ef65f26 100644
--- a/bragi.nix
+++ b/bragi.nix
@@ -20,10 +20,6 @@
20 networking.hostId = "2af11085"; 20 networking.hostId = "2af11085";
21 networking.wireless.enable = true; 21 networking.wireless.enable = true;
22 22
23 networking.firewall = {
24 enable = false;
25 };
26
27 nixpkgs.config.packageOverrides = pkgs: 23 nixpkgs.config.packageOverrides = pkgs:
28 { 24 {
29 trivmix = let trivmix = pkgs.haskellPackages.callPackage ./custom/trivmix.nix {}; in 25 trivmix = let trivmix = pkgs.haskellPackages.callPackage ./custom/trivmix.nix {}; in
@@ -180,6 +176,15 @@
180 ]; 176 ];
181 }; 177 };
182 178
179 networking.firewall = {
180 enable = true;
181 allowPing = true;
182 allowTCPPorts = [ 22
183 ];
184 allowUDPPortRanges = [ { from = 60000; to = 61000; } # mosh
185 ];
186 };
187
183 services.dhcpd = { 188 services.dhcpd = {
184 enable = true; 189 enable = true;
185 interfaces = "enp1s0"; 190 interfaces = "enp1s0";