24.11 fixes

This commit is contained in:
Adrian Gunnar Lauterer 2024-12-08 14:34:58 +01:00
parent 1332d72a5c
commit 24b2e36544
4 changed files with 6 additions and 45 deletions

View File

@ -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

View File

@ -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

View File

@ -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";

View File

@ -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;