2024-03-23 13:02:14 +00:00
|
|
|
{config, ...}: {
|
2024-03-23 06:49:46 +00:00
|
|
|
boot = {
|
|
|
|
initrd.kernelModules = ["amdgpu"];
|
|
|
|
extraModulePackages = with config.boot.kernelPackages; [v4l2loopback];
|
|
|
|
extraModprobeConfig = ''
|
|
|
|
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
hardware.opengl = {
|
|
|
|
driSupport = true;
|
|
|
|
driSupport32Bit = true;
|
|
|
|
};
|
2024-02-23 12:05:15 +00:00
|
|
|
services.ollama.enable = true;
|
2024-03-22 16:19:08 +00:00
|
|
|
networking.wg-quick.interfaces = {
|
|
|
|
protonvpn = {
|
|
|
|
address = ["10.2.0.2/32"];
|
|
|
|
dns = ["10.2.0.1"];
|
|
|
|
privateKeyFile = "/root/wireguard-keys/privatekey";
|
|
|
|
peers = [
|
|
|
|
{
|
|
|
|
publicKey = "ic5vxFWQEX5lRVwgx2vfE1xYKXQuwQi1TGDSkR0fsEY=";
|
|
|
|
# presharedKeyFile = "/root/wireguard-keys/preshared_from_peer0_key";
|
|
|
|
allowedIPs = ["0.0.0.0/0"];
|
|
|
|
endpoint = "146.70.96.66:51820";
|
|
|
|
persistentKeepalive = 25;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2024-01-12 22:06:16 +00:00
|
|
|
}
|