mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
18 lines
564 B
Nix
18 lines
564 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let cfg = config.modules.services.samba-client;
|
|
in {
|
|
options.modules.services.samba-client.enable = lib.mkEnableOption "samba-client";
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
# the needed ports in the firewall.
|
|
networking.firewall.allowedTCPPorts = [ 445 139 ];
|
|
networking.firewall.allowedUDPPorts = [ 137 138 ];
|
|
|
|
# To make SMB mounting easier on the command line
|
|
environment.systemPackages = with pkgs; [
|
|
cifs-utils # Utilities for mounting and managing CIFS (Common Internet File System) shares.
|
|
];
|
|
};
|
|
}
|