dotfiles/provision/modules/services/samba-client.nix

15 lines
469 B
Nix
Raw Normal View History

2023-07-25 15:23:07 -07:00
{ 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 {
environment.systemPackages = with pkgs; [
cifs-utils # Utilities for mounting and managing CIFS (Common Internet File System) shares.
];
2024-10-26 19:05:14 -07:00
networking.firewall.allowedTCPPorts = [ 445 139 ];
networking.firewall.allowedUDPPorts = [ 137 138 ];
2023-07-25 15:23:07 -07:00
};
}