Compare commits

...

4 Commits

Author SHA1 Message Date
tux
5da37db69c feat: add send 2025-03-13 19:33:21 +05:30
tux
aa45cbb61d feat: add kasmweb to persist dir 2025-03-13 19:03:05 +05:30
tux
c84e8b039a chore: update disko device path 2025-03-13 19:02:53 +05:30
tux
d65c3ce6b3 chore: update trok flake input 2025-03-13 13:54:53 +05:30
3 changed files with 39 additions and 5 deletions

8
flake.lock generated
View File

@ -1101,11 +1101,11 @@
]
},
"locked": {
"lastModified": 1740765983,
"narHash": "sha256-qPCQyGodpxBBYb5ZBc+BsP8njRCM8G/I8IuGp3UY8qM=",
"lastModified": 1741607494,
"narHash": "sha256-d6H+zTm0g1loLBQOoesyLKFRAIDzdR7zPpO7fU/hSCY=",
"ref": "refs/heads/main",
"rev": "eb4f430ad7b6139db36bf9dcfd777157d80d4047",
"revCount": 18,
"rev": "05c9e912c47d8c67ce86a3cf92d8581dabf9dcb8",
"revCount": 31,
"type": "git",
"url": "ssh://git@github.com/tuxdotrs/trok.git"
},

View File

@ -11,7 +11,7 @@
(modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix")
inputs.disko.nixosModules.default
(import ./disko.nix {device = "/dev/sda";})
(import ./disko.nix {device = "/dev/vda";})
../common
../../modules/nixos/virtualisation/docker.nix
@ -196,6 +196,7 @@
"/var/lib/private"
"/var/lib/nextcloud"
"/var/lib/silverbullet"
"/var/lib/kasmweb"
];
files = [
"/etc/ssh/ssh_host_ed25519_key"

View File

@ -0,0 +1,33 @@
{
lib,
config,
...
}: {
services = {
send = {
enable = true;
port = 1443;
environment = {
DEFAULT_DOWNLOADS = 5;
DETECT_BASE_URL = true;
};
};
nginx = {
enable = lib.mkForce true;
virtualHosts = {
"share.tux.rs" = {
forceSSL = true;
useACMEHost = "tux.rs";
locations = {
"/" = {
proxyPass = "http://${config.services.send.host}:${toString config.services.send.port}";
proxyWebsockets = true;
};
};
};
};
};
};
}