From 64c812c4f4f4e106638231edcb2ee4dfc8e8679c Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Wed, 13 Mar 2024 17:52:02 -0500 Subject: [PATCH] Add smb share. --- nixos/gandalf/configuration.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/nixos/gandalf/configuration.nix b/nixos/gandalf/configuration.nix index 4607ad0..f440381 100644 --- a/nixos/gandalf/configuration.nix +++ b/nixos/gandalf/configuration.nix @@ -27,8 +27,9 @@ # Network settings networking = { hostName = "gandalf"; # Define your hostname. - networkmanager.enable = true; hostId = "e2fc95cd"; + networkmanager.enable = true; + firewall.enable = false; }; environment.systemPackages = with pkgs; [ @@ -86,6 +87,16 @@ "force user" = "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.allowedUDPPorts = [ ... ]; # 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 # (/run/current-system/configuration.nix). This is useful in case you