mirror of
https://github.com/adrlau/nix-dotfiles.git
synced 2025-01-22 00:14:47 +01:00
24.11 fixes
This commit is contained in:
parent
1332d72a5c
commit
24b2e36544
@ -18,7 +18,7 @@
|
|||||||
../../profiles/ai.nix
|
../../profiles/ai.nix
|
||||||
../../profiles/mediaserver.nix
|
../../profiles/mediaserver.nix
|
||||||
|
|
||||||
../../services/smb.nix
|
#../../services/smb.nix
|
||||||
../../services/wordpress.nix
|
../../services/wordpress.nix
|
||||||
../../services/torrent.nix
|
../../services/torrent.nix
|
||||||
#../../services/ozai.nix
|
#../../services/ozai.nix
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
{
|
{
|
||||||
# Enable OpenGL
|
# Enable OpenGL
|
||||||
hardware.opengl = {
|
hardware.graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
driSupport = true;
|
enable32Bit = true;
|
||||||
driSupport32Bit = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Load nvidia driver for Xorg and Wayland
|
# Load nvidia driver for Xorg and Wayland
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
|
|
||||||
services.ollama.enable = true;
|
services.ollama.enable = true;
|
||||||
services.ollama.package = pkgs.unstable.ollama;
|
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.models = "/var/lib/ollama/models";
|
||||||
services.ollama.home = "/var/lib/ollama";
|
services.ollama.home = "/var/lib/ollama";
|
||||||
|
|
||||||
|
@ -7,43 +7,6 @@ services.samba = {
|
|||||||
enable = true;
|
enable = true;
|
||||||
securityType = "user";
|
securityType = "user";
|
||||||
openFirewall = true;
|
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 = {
|
services.samba-wsdd = {
|
||||||
@ -51,11 +14,9 @@ services.samba-wsdd = {
|
|||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
#networking.firewall.enable = true;
|
|
||||||
networking.firewall.allowPing = true;
|
networking.firewall.allowPing = true;
|
||||||
|
|
||||||
|
services.avahi.openfirewall = true;
|
||||||
#services.avahi.openfirewall = true;
|
|
||||||
services.avahi = {
|
services.avahi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nssmdns4 = true;
|
nssmdns4 = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user