mirror of
https://github.com/tuxdotrs/nixos-config.git
synced 2025-07-06 17:56:35 +05:30
Compare commits
4 Commits
a8eb0cc20d
...
5da37db69c
Author | SHA1 | Date | |
---|---|---|---|
5da37db69c
|
|||
aa45cbb61d
|
|||
c84e8b039a
|
|||
d65c3ce6b3
|
8
flake.lock
generated
8
flake.lock
generated
@ -1101,11 +1101,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1740765983,
|
"lastModified": 1741607494,
|
||||||
"narHash": "sha256-qPCQyGodpxBBYb5ZBc+BsP8njRCM8G/I8IuGp3UY8qM=",
|
"narHash": "sha256-d6H+zTm0g1loLBQOoesyLKFRAIDzdR7zPpO7fU/hSCY=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "eb4f430ad7b6139db36bf9dcfd777157d80d4047",
|
"rev": "05c9e912c47d8c67ce86a3cf92d8581dabf9dcb8",
|
||||||
"revCount": 18,
|
"revCount": 31,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://git@github.com/tuxdotrs/trok.git"
|
"url": "ssh://git@github.com/tuxdotrs/trok.git"
|
||||||
},
|
},
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
inputs.disko.nixosModules.default
|
inputs.disko.nixosModules.default
|
||||||
(import ./disko.nix {device = "/dev/sda";})
|
(import ./disko.nix {device = "/dev/vda";})
|
||||||
|
|
||||||
../common
|
../common
|
||||||
../../modules/nixos/virtualisation/docker.nix
|
../../modules/nixos/virtualisation/docker.nix
|
||||||
@ -196,6 +196,7 @@
|
|||||||
"/var/lib/private"
|
"/var/lib/private"
|
||||||
"/var/lib/nextcloud"
|
"/var/lib/nextcloud"
|
||||||
"/var/lib/silverbullet"
|
"/var/lib/silverbullet"
|
||||||
|
"/var/lib/kasmweb"
|
||||||
];
|
];
|
||||||
files = [
|
files = [
|
||||||
"/etc/ssh/ssh_host_ed25519_key"
|
"/etc/ssh/ssh_host_ed25519_key"
|
||||||
|
33
modules/nixos/selfhosted/send.nix
Normal file
33
modules/nixos/selfhosted/send.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user