add dufs module to thinkpad

This commit is contained in:
Yan Lin 2025-11-27 21:50:48 +01:00
parent dd47a6a18d
commit d234b775e2
3 changed files with 43 additions and 1 deletions

View file

@ -7,6 +7,7 @@
../../../modules/hyprland/system.nix
../../../modules/wireguard.nix
../../../modules/login-display.nix
../../../modules/dufs.nix
];
# Bootloader - standard UEFI setup
@ -253,4 +254,10 @@
showDiskUsage = true;
};
services.dufs = {
sharedPath = "/home/yanlin/NSFW";
user = "yanlin";
group = "users";
};
}

View file

@ -66,6 +66,18 @@
};
};
# NSFW WebDAV (dufs on thinkpad)
nsfw = {
rule = "Host(`nsfw.yanlincs.com`)";
service = "nsfw";
tls = {
certResolver = "cloudflare";
domains = [{
main = "*.yanlincs.com";
}];
};
};
};
services = {
@ -115,6 +127,15 @@
};
};
# NSFW backend (dufs on thinkpad via WireGuard)
nsfw = {
loadBalancer = {
servers = [{
url = "http://10.2.2.30:5099";
}];
};
};
};
};