try
This commit is contained in:
@@ -9,6 +9,10 @@
|
|||||||
|
|
||||||
config = lib.mkIf config.sysconfig.virtualization.ollama.enable {
|
config = lib.mkIf config.sysconfig.virtualization.ollama.enable {
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
nat.internalInterfaces = [ "ve-ollama" ];
|
||||||
|
};
|
||||||
|
|
||||||
containers.ollama = {
|
containers.ollama = {
|
||||||
|
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
@@ -37,6 +41,11 @@
|
|||||||
hostPath = "/dev/nvidia-uvm-tools";
|
hostPath = "/dev/nvidia-uvm-tools";
|
||||||
isReadOnly = false;
|
isReadOnly = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"/dev/dri/renderD128" = {
|
||||||
|
hostPath = "/dev/dri/renderD128";
|
||||||
|
isReadOnly = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
allowedDevices = [
|
allowedDevices = [
|
||||||
@@ -60,6 +69,11 @@
|
|||||||
node = "/dev/nvidia-uvm-tools";
|
node = "/dev/nvidia-uvm-tools";
|
||||||
modifier = "rw";
|
modifier = "rw";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
node = "/dev/dri/renderD128";
|
||||||
|
modifier = "rw";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|||||||
@@ -8,7 +8,15 @@
|
|||||||
config = lib.mkIf config.sysconfig.virtualization.traefik.enable {
|
config = lib.mkIf config.sysconfig.virtualization.traefik.enable {
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hosts."192.168.100.11" = [ "esotericbytes.com" "*.esotericbytes.com" "traefik.local" ];
|
hosts."192.168.100.11" = [
|
||||||
|
|
||||||
|
"esotericbytes.com"
|
||||||
|
"*.esotericbytes.com"
|
||||||
|
|
||||||
|
"esotericbytes.local"
|
||||||
|
"*.esotericbytes.local"
|
||||||
|
];
|
||||||
|
|
||||||
firewall.allowedTCPPorts = [ 22 80 443 ];
|
firewall.allowedTCPPorts = [ 22 80 443 ];
|
||||||
|
|
||||||
nat.internalInterfaces = [ "ve-traefik" ];
|
nat.internalInterfaces = [ "ve-traefik" ];
|
||||||
@@ -156,13 +164,13 @@
|
|||||||
"nextcloud_redirectregex"
|
"nextcloud_redirectregex"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
/*traefik = {
|
traefik = {
|
||||||
entryPoints = [ "websecure" ];
|
entryPoints = [ "websecure" ];
|
||||||
rule = "Host(`192.168.100.11`) || Host(`homebox.vpn`)";
|
rule = "Host(`traefik.esotericbytes.local`)";
|
||||||
service = "api@internal";
|
service = "api@internal";
|
||||||
tls.certResolver = "cloudflare";
|
tls.certResolver = "cloudflare";
|
||||||
#middlewares = [ "authentik" ];
|
#middlewares = [ "authentik" ];
|
||||||
};*/
|
};
|
||||||
/*ntfy = {
|
/*ntfy = {
|
||||||
entryPoints = [ "websecure" ];
|
entryPoints = [ "websecure" ];
|
||||||
rule = "Host(`ntfy.esotericbytes.com`)";
|
rule = "Host(`ntfy.esotericbytes.com`)";
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
{ config, lib, ... }: {
|
|
||||||
|
|
||||||
options = {
|
|
||||||
sysconfig.wireguard.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.sysconfig.wireguard.enable {
|
|
||||||
networking.wireguard = {
|
|
||||||
enable = true;
|
|
||||||
interfaces.wg0 = {
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -130,7 +130,7 @@ bind = $mainMod, V, togglefloating,
|
|||||||
|
|
||||||
bind = $mainMod SHIFT, V, exec, hyprrun vlc
|
bind = $mainMod SHIFT, V, exec, hyprrun vlc
|
||||||
|
|
||||||
bind = , Menu, exec, hyprrun rofi -show drun -show-icons -run-command 'hyprrun {cmd}'
|
bind = , Menu, exec, rofi -show drun -show-icons -run-command 'hyprrun {cmd}'
|
||||||
|
|
||||||
bind = $mainMod, Menu, exec, hyprrun hyprpanel -q; hyprrun hyprpanel
|
bind = $mainMod, Menu, exec, hyprrun hyprpanel -q; hyprrun hyprpanel
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user