flakes/containers/fluorite/configuration.nix
Cilly Leang c93496cb84
Some checks are pending
CI / Build linux-lava for x86_64-linux (push) Waiting to run
containers/fluorite: config proxy againn
2026-06-17 00:43:20 +10:00

42 lines
1.1 KiB
Nix

{ ... }: {
system.stateVersion = "25.11";
systemd.tmpfiles.rules = [
"d /persist/slskd/downloads 755 slskd slskd"
];
fileSystems."/var/lib/slskd" = {
device = "/persist/slskd";
fsType = "none";
options = [ "bind" ];
};
fileSystems."/var/lib/tailscale" = {
device = "/persist/tailscale";
fsType = "none";
options = [ "bind" ];
};
networking.firewall.allowedTCPPorts = [ 5030 50300 ];
networking.firewall.allowedUDPPorts = [ 5030 50300 ];
services.tailscale = {
enable = true;
authKeyFile = "/binds/tailscale_auth";
openFirewall = true;
interfaceName = "userspace-networking";
extraDaemonFlags = [ "--socks5-server=localhost:1055" ];
extraSetFlags = [ "--exit-node=100.67.1.1" ];
useRoutingFeatures = "client";
};
services.slskd = {
enable = true;
domain = null;
environmentFile = "/binds/slskd_env";
settings = {
shares.directories = [ "/binds/music/" ];
soulseek.connection.proxy = {
enabled = true;
address = "localhost";
port = "1055";
};
};
};
}