Remove several genesis services

Remove Nginx proxy
Remove mounting of LUN
This commit is contained in:
Greg Hellings
2024-07-22 13:58:55 -05:00
parent c28ffe278f
commit fb45b77e27
2 changed files with 1 additions and 41 deletions
-40
View File
@@ -75,10 +75,6 @@ in {
fsType = "nfs";
options = [ "ro" ];
};
"/proxy" = {
device = "/dev/vdb1";
fsType = "btrfs";
};
};
services = {
@@ -187,42 +183,6 @@ in {
"jellyfin.home".target = "http://localhost:8096/";
};
services = {
nginx.virtualHosts."nixcache.thehellings.lan" = {
serverName = "nixcache.thehellings.lan";
serverAliases = [ "nixcache" "nixcache.home" ];
root = "/proxy";
locations = {
"~ ^/nix-cache-info" = {
proxyPass = "https://cache.nixos.org";
root = "/proxy/nixpkgs/nix-cache-info/store";
recommendedProxySettings = false;
extraConfig = ''
error_log /var/log/nginx/proxy.log debug;
proxy_store on;
proxy_store_access user:rw group:rw all:r;
proxy_temp_path /proxy/nixpkgs/nix-cache-info/temp;
proxy_pass_request_headers on;
proxy_set_header Host "cache.nixos.org";
'';
};
"~^/nar/.+$" = {
proxyPass = "https://cache.nixos.org";
root = "/proxy/nixpkgs/nar/store";
recommendedProxySettings = false;
extraConfig = ''
proxy_store on;
proxy_store_access user:rw group:rw all:r;
proxy_temp_path /proxy/nixpkgs/nar/temp;
proxy_pass_request_headers on;
proxy_set_header Host "cache.nixos.org";
'';
};
};
};
};
systemd.services.nginx.serviceConfig.ReadWritePaths = [ "/proxy" ];
environment.systemPackages = with pkgs; [
bind
curl # Used by dnsmasq fetching
+1 -1
View File
@@ -83,7 +83,7 @@ in rec {
};
pipenv-ivr = prev.callPackage ./pipenv.nix { };
myxonsh = (prev.xonsh-unwrapped.passthru.wrapper.override {
myxonsh = (prev.unstable.xonsh-unwrapped.passthru.wrapper.override {
extraPackages = (ps: with ps; [
xonsh-apipenv
xonsh-direnv