Add smb share.

This commit is contained in:
Joseph Hanson 2024-03-13 17:52:02 -05:00
parent 6c167f6863
commit 64c812c4f4
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o

View file

@ -27,8 +27,9 @@
# Network settings # Network settings
networking = { networking = {
hostName = "gandalf"; # Define your hostname. hostName = "gandalf"; # Define your hostname.
networkmanager.enable = true;
hostId = "e2fc95cd"; hostId = "e2fc95cd";
networkmanager.enable = true;
firewall.enable = false;
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@ -86,6 +87,16 @@
"force user" = "apps"; "force user" = "apps";
"force group" = "apps"; "force group" = "apps";
}; };
hansonhive = {
path = "/eru/hansonhive";
browseable = "yes";
"read only" = "no";
"guest ok" = "no";
"create mask" = "0644";
"directory mask" = "0755";
"force user" = "33";
"force group" = "33";
};
}; };
}; };
@ -147,7 +158,7 @@
# networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether. # Or disable the firewall altogether.
networking.firewall.enable = false; # networking.firewall.enable = false;
# 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