feat: disable smb and enable llama
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
# ./sunshine.nix
|
||||
# ./zerotier.nix
|
||||
# ./dnscrypt.nix
|
||||
./ollama.nix
|
||||
# ./ollama.nix
|
||||
# ./llama.nix
|
||||
./tailscale.nix
|
||||
./samba.nix
|
||||
./mullvad.nix
|
||||
|
||||
27
nixos/ryu/services/llama.nix
Normal file
27
nixos/ryu/services/llama.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
services = {
|
||||
llama-cpp = {
|
||||
enable = true;
|
||||
model = pkgs.fetchurl {
|
||||
url = "https://huggingface.co/unsloth/gpt-oss-20b-GGUF/resolve/main/gpt-oss-20b-F16.gguf";
|
||||
sha256 = "b93a63c42fc2432396b56031bb1a4aa5f598af1de369de397a900888032cad64";
|
||||
};
|
||||
# package = pkgs.llama-cpp.overrideAttrs (old: {
|
||||
# src = inputs.ik_llama;
|
||||
# version = "5995";
|
||||
# });
|
||||
};
|
||||
# caddy = {
|
||||
# virtualHosts."llama.ryu.darksailor.dev".extraConfig = ''
|
||||
# import hetzner
|
||||
# reverse_proxy localhost:${builtins.toString config.services.llama-cpp.port}
|
||||
# '';
|
||||
# };
|
||||
};
|
||||
}
|
||||
@@ -17,6 +17,18 @@
|
||||
LD_LIBRARY_PATH = "run/opengl-driver/lib";
|
||||
HTTP_PROXY = "https://ollama.ryu.darksailor.dev";
|
||||
};
|
||||
package = pkgs.ollama.overrideAttrs {
|
||||
version = "0.11.0";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "ollama";
|
||||
repo = "ollama";
|
||||
tag = "v0.11.0";
|
||||
hash = "sha256-po7BxJAj9eOpOaXsLDmw6/1RyjXPtXza0YUv0pVojZ0=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
doCheck = false;
|
||||
vendorHash = "sha256-SlaDsu001TUW+t9WRp7LqxUSQSGDF1Lqu9M1bgILoX4=";
|
||||
};
|
||||
};
|
||||
# open-webui = {
|
||||
# enable = false;
|
||||
|
||||
@@ -1,36 +1,36 @@
|
||||
{...}: {
|
||||
services = {
|
||||
samba = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
settings = {
|
||||
global = {
|
||||
"workgroup" = "WORKGROUP";
|
||||
"server string" = "smbnix";
|
||||
"netbios name" = "smbnix";
|
||||
"security" = "user";
|
||||
"hosts allow" = "192.168.11. 127.0.0.1 localhost";
|
||||
"hosts deny" = "0.0.0.0/0";
|
||||
"guest account" = "nobody";
|
||||
"map to guest" = "bad user";
|
||||
};
|
||||
|
||||
public = {
|
||||
"path" = "/media";
|
||||
"browseable" = "yes";
|
||||
"read only" = "no";
|
||||
"guest ok" = "yes";
|
||||
"create mask" = "0644";
|
||||
"directory mask" = "0755";
|
||||
# "force user" = "username";
|
||||
# "force group" = "groupname";
|
||||
};
|
||||
};
|
||||
};
|
||||
samba-wsdd = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
};
|
||||
# services = {
|
||||
# samba = {
|
||||
# enable = false;
|
||||
# openFirewall = true;
|
||||
# settings = {
|
||||
# global = {
|
||||
# "workgroup" = "WORKGROUP";
|
||||
# "server string" = "smbnix";
|
||||
# "netbios name" = "smbnix";
|
||||
# "security" = "user";
|
||||
# "hosts allow" = "192.168.11. 127.0.0.1 localhost";
|
||||
# "hosts deny" = "0.0.0.0/0";
|
||||
# "guest account" = "nobody";
|
||||
# "map to guest" = "bad user";
|
||||
# };
|
||||
#
|
||||
# public = {
|
||||
# "path" = "/media";
|
||||
# "browseable" = "yes";
|
||||
# "read only" = "no";
|
||||
# "guest ok" = "yes";
|
||||
# "create mask" = "0644";
|
||||
# "directory mask" = "0755";
|
||||
# # "force user" = "username";
|
||||
# # "force group" = "groupname";
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# samba-wsdd = {
|
||||
# enable = true;
|
||||
# openFirewall = true;
|
||||
# };
|
||||
# };
|
||||
networking.firewall.allowPing = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user