mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 02:52:55 +00:00
open firewall for samba connection
This commit is contained in:
parent
5e4642b92e
commit
d46e6dad6b
@ -1,4 +1,4 @@
|
|||||||
{ config, lib, ... }: {
|
{ config, pkgs, lib, ... }: {
|
||||||
|
|
||||||
options = { samba.enable = lib.mkEnableOption "Enable Samba sharing."; };
|
options = { samba.enable = lib.mkEnableOption "Enable Samba sharing."; };
|
||||||
|
|
||||||
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
services.samba = lib.mkIf (config.samba.enable) {
|
services.samba = lib.mkIf (config.samba.enable) {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
shares.video = {
|
shares.video = {
|
||||||
path = "/data/video";
|
path = "/data/video";
|
||||||
browseable = "yes";
|
browseable = "yes";
|
||||||
@ -21,6 +22,12 @@
|
|||||||
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
|
||||||
|
environment.systemPackages = lib.mkIf (config.gui.enable
|
||||||
|
&& config.nautilus.enable
|
||||||
|
&& config.services.xserver.windowManager.i3.enable)
|
||||||
|
[ pkgs.lxqt.pxqt-policykit ];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user