mirror of
https://github.com/adrlau/nix-dotfiles.git
synced 2025-01-21 07:54:47 +01:00
24.11 fixes
This commit is contained in:
parent
1332d72a5c
commit
24b2e36544
@ -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
|
||||
|
@ -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
|
||||
|
@ -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";
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user