mirror of
https://github.com/nmasur/dotfiles
synced 2025-04-24 09:12:23 +00:00
Compare commits
2 Commits
59bd3590a4
...
31170a616f
Author | SHA1 | Date | |
---|---|---|---|
|
31170a616f | ||
|
4502c5ff62 |
@ -9,6 +9,8 @@
|
|||||||
networking.interfaces.enp5s0.useDHCP = true;
|
networking.interfaces.enp5s0.useDHCP = true;
|
||||||
networking.interfaces.wlp4s0.useDHCP = true;
|
networking.interfaces.wlp4s0.useDHCP = true;
|
||||||
|
|
||||||
|
networking.firewall.allowPing = lib.mkIf config.server true;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
services.samba = lib.mkIf (config.samba.enable) {
|
services.samba = lib.mkIf (config.samba.enable) {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
shares.video = {
|
shares.data = {
|
||||||
path = "/data";
|
path = "/data";
|
||||||
browseable = "yes";
|
browseable = "yes";
|
||||||
"read only" = "no";
|
"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 =
|
services.gvfs =
|
||||||
lib.mkIf (config.gui.enable && config.nautilus.enable) { enable = true; };
|
lib.mkIf (config.gui.enable && config.nautilus.enable) { enable = true; };
|
||||||
|
|
||||||
# Permissions required to mount Samba with GVFS, if not using desktop environment
|
# # Permissions required to mount Samba with GVFS, if not using desktop environment
|
||||||
environment.systemPackages = lib.mkIf (config.gui.enable
|
# environment.systemPackages = lib.mkIf (config.gui.enable
|
||||||
&& config.nautilus.enable
|
# && config.nautilus.enable
|
||||||
&& config.services.xserver.windowManager.i3.enable)
|
# && config.services.xserver.windowManager.i3.enable)
|
||||||
[ pkgs.lxqt.pxqt-policykit ];
|
# [ pkgs.lxqt.lxqt-policykit ];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user