Enable samba

This commit is contained in:
Chris Dombroski 2024-04-27 16:18:43 -04:00
parent 9cede5484c
commit 9d3259431b

View file

@ -382,6 +382,15 @@
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
services.openssh.enable = true; services.openssh.enable = true;
services.samba.enable = true;
services.samba.shares = {
media = {
path = "/video-data";
browseable = "yes";
"read only" = "no";
"guest ok" = "yes";
};
};
services.zfs.autoScrub.enable = true; services.zfs.autoScrub.enable = true;
services.zfs.zed.settings = { services.zfs.zed.settings = {
ZED_EMAIL_ADDR = [ "root" ]; ZED_EMAIL_ADDR = [ "root" ];
@ -399,6 +408,7 @@
# networking.firewall.allowedUDPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether. # Or disable the firewall altogether.
# networking.firewall.enable = false; # networking.firewall.enable = false;
networking.firewall.allowPing = true;
# Copy the NixOS configuration file and link it from the resulting system # Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you # (/run/current-system/configuration.nix). This is useful in case you