Compare commits

...

2 Commits

Author SHA1 Message Date
Noah Masur
31170a616f client samba cleanup 2023-03-05 23:47:52 -05:00
Noah Masur
4502c5ff62 enhancements for samba server 2023-03-06 04:46:12 +00:00
2 changed files with 14 additions and 7 deletions

View File

@ -9,6 +9,8 @@
networking.interfaces.enp5s0.useDHCP = true;
networking.interfaces.wlp4s0.useDHCP = true;
networking.firewall.allowPing = lib.mkIf config.server true;
};
}

View File

@ -7,7 +7,7 @@
services.samba = lib.mkIf (config.samba.enable) {
enable = true;
openFirewall = true;
shares.video = {
shares.data = {
path = "/data";
browseable = "yes";
"read only" = "no";
@ -18,15 +18,20 @@
};
};
# Allow browsing Samba shares
# Allows Windows clients to discover server
services.samba-wsdd.enable = true;
networking.firewall.allowedTCPPorts = [ 5357 ];
networking.firewall.allowedUDPPorts = [ 3702 ];
# Allow client browsing Samba and virtual filesystem shares
services.gvfs =
lib.mkIf (config.gui.enable && config.nautilus.enable) { enable = true; };
# Permissions required to mount Samba with GVFS, if not using desktop environment
environment.systemPackages = lib.mkIf (config.gui.enable
&& config.nautilus.enable
&& config.services.xserver.windowManager.i3.enable)
[ pkgs.lxqt.pxqt-policykit ];
# # Permissions required to mount Samba with GVFS, if not using desktop environment
# environment.systemPackages = lib.mkIf (config.gui.enable
# && config.nautilus.enable
# && config.services.xserver.windowManager.i3.enable)
# [ pkgs.lxqt.lxqt-policykit ];
};