diff --git a/machines/galadriel/configuration.nix b/machines/galadriel/configuration.nix index 8aff6d8..c682c88 100644 --- a/machines/galadriel/configuration.nix +++ b/machines/galadriel/configuration.nix @@ -18,7 +18,7 @@ ../../profiles/ai.nix ../../profiles/mediaserver.nix - ../../services/smb.nix + #../../services/smb.nix ../../services/wordpress.nix ../../services/torrent.nix #../../services/ozai.nix diff --git a/machines/galadriel/nvidia.nix b/machines/galadriel/nvidia.nix index c2042f1..eb7ca91 100644 --- a/machines/galadriel/nvidia.nix +++ b/machines/galadriel/nvidia.nix @@ -1,10 +1,9 @@ { config, lib, pkgs, ... }: { # Enable OpenGL - hardware.opengl = { + hardware.graphics = { enable = true; - driSupport = true; - driSupport32Bit = true; + enable32Bit = true; }; # Load nvidia driver for Xorg and Wayland diff --git a/services/ollama.nix b/services/ollama.nix index b41bdb4..62a0fe8 100644 --- a/services/ollama.nix +++ b/services/ollama.nix @@ -6,7 +6,8 @@ services.ollama.enable = true; services.ollama.package = pkgs.unstable.ollama; - services.ollama.listenAddress = "0.0.0.0:11434"; + services.ollama.host = "0.0.0.0"; + services.ollama.port = 11434; services.ollama.models = "/var/lib/ollama/models"; services.ollama.home = "/var/lib/ollama"; diff --git a/services/smb.nix b/services/smb.nix index 731a425..6820c41 100644 --- a/services/smb.nix +++ b/services/smb.nix @@ -7,43 +7,6 @@ services.samba = { enable = true; securityType = "user"; openFirewall = true; - extraConfig = '' - workgroup = WORKGROUP - server string = galadriel - netbios name = galadriel - security = user - #use sendfile = yes - #max protocol = smb2 - min protocol = SMB3_00 - server smb encrypt = required - # note: localhost is the ipv6 localhost ::1 - hosts allow = 192.168.1. 192.168.0. 127.0.0.1 localhost 100.0.0.0/255.0.0.0 - hosts deny = 0.0.0.0/0 - guest account = nobody - map to guest = bad user - ''; - shares = { - # public = { - # path = "/mnt/Shares/Public"; - # browseable = "yes"; - # "read only" = "no"; - # "guest ok" = "yes"; - # "create mask" = "0644"; - # "directory mask" = "0755"; - # "force user" = "username"; - # "force group" = "groupname"; - # }; - Backup = { - path = "/Main/Backup"; - browseable = "yes"; - "force user" = "gunalx"; - "force group" = "gunalx"; - "read only" = "no"; - "guest ok" = "no"; - "create mask" = "0644"; - "directory mask" = "0755"; - }; - }; }; services.samba-wsdd = { @@ -51,11 +14,9 @@ services.samba-wsdd = { openFirewall = true; }; -#networking.firewall.enable = true; networking.firewall.allowPing = true; - -#services.avahi.openfirewall = true; +services.avahi.openfirewall = true; services.avahi = { enable = true; nssmdns4 = true;