diff options
author | Nguyễn Gia Phong <cnx@loang.net> | 2023-08-04 14:45:16 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <cnx@loang.net> | 2023-08-04 14:45:58 +0900 |
commit | 761dccb19e885167638118363592fa839b532f20 (patch) | |
tree | 2b6b29575f543bab14eaafe853c5c84814580214 | |
parent | 9b8c18d5ca3dd55daff999a5799b81298ff499a0 (diff) | |
download | nixos-conf-761dccb19e885167638118363592fa839b532f20.tar.gz |
Clean up unused code for web user dir
-rw-r--r-- | static.nix | 16 |
1 files changed, 2 insertions, 14 deletions
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 <https://www.gnu.org/licenses/>. { 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; |