diff options
author | Michael Hoang <enzime@users.noreply.github.com> | 2021-10-16 12:29:55 +1100 |
---|---|---|
committer | Michael Hoang <enzime@users.noreply.github.com> | 2021-10-19 19:11:02 +1100 |
commit | 43d2eefea6a42a1e77e326d36da064246b6afcb2 (patch) | |
tree | cda852c31355f13588689059e0b1f173024ce2a9 /nixos/tests/samba.nix | |
parent | c033ff53bbf6d02fe6d5863260a752892c2f6216 (diff) |
nixos/samba: Add `openFirewall` option
Diffstat (limited to 'nixos/tests/samba.nix')
-rw-r--r-- | nixos/tests/samba.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/tests/samba.nix b/nixos/tests/samba.nix index d1d50caabfa53..252c3dd9c76e9 100644 --- a/nixos/tests/samba.nix +++ b/nixos/tests/samba.nix @@ -20,6 +20,7 @@ import ./make-test-python.nix ({ pkgs, ... }: server = { ... }: { services.samba.enable = true; + services.samba.openFirewall = true; services.samba.shares.public = { path = "/public"; "read only" = true; @@ -27,8 +28,6 @@ import ./make-test-python.nix ({ pkgs, ... }: "guest ok" = "yes"; comment = "Public samba share."; }; - networking.firewall.allowedTCPPorts = [ 139 445 ]; - networking.firewall.allowedUDPPorts = [ 137 138 ]; }; }; |