From 761dccb19e885167638118363592fa839b532f20 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Fri, 4 Aug 2023 14:45:16 +0900 Subject: Clean up unused code for web user dir --- static.nix | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'static.nix') diff --git a/static.nix b/static.nix index 85830e2..aeda147 100644 --- a/static.nix +++ b/static.nix @@ -17,21 +17,8 @@ # along with loang configuration. If not, see . { config, lib, pkgs, ... }: -let - inherit (config.networking) domain; - bindUserDirs = sources: target: lib.mapAttrs' (user: dir: { - name = target + user; - value = { - device = "${config.users.users.${user}.home}/${dir}"; - options = [ "bind" ]; - }; - }) sources; - phylactery = config.services.phylactery; +let inherit (config.networking) domain; in { - fileSystems = bindUserDirs { - cnx = "www"; - } "${config.services.nginx.virtualHosts.${domain}.root}/~"; - networking.firewall.allowedTCPPorts = [ 80 # HTTP 443 # TLS @@ -142,6 +129,7 @@ in { root = "/mnt/nas/www/px.cnx.gdn"; }) // (aliasOpenNIC "striproman.pirate" "xem.${domain}" (let address = "http://${phylactery.host}:${toString phylactery.port}"; + phylactery = config.services.phylactery; in { locations."/" = { proxyPass = address; -- cgit 1.4.1