diff --git a/hosts/arcturus/default.nix b/hosts/arcturus/default.nix index 1e1787a..4fe7a0c 100644 --- a/hosts/arcturus/default.nix +++ b/hosts/arcturus/default.nix @@ -31,6 +31,7 @@ ../../modules/nixos/selfhosted/rustdesk-server.nix ../../modules/nixos/selfhosted/kasmweb.nix ../../modules/nixos/selfhosted/open-webui.nix + ../../modules/nixos/selfhosted/glance ]; tux.services.openssh.enable = true; diff --git a/hosts/homelab/default.nix b/hosts/homelab/default.nix index 4dddd94..fda47c2 100755 --- a/hosts/homelab/default.nix +++ b/hosts/homelab/default.nix @@ -16,7 +16,6 @@ ../../modules/nixos/desktop ../../modules/nixos/virtualisation/docker.nix ../../modules/nixos/selfhosted/open-webui.nix - ../../modules/nixos/selfhosted/glance ]; tux.services.openssh.enable = true; diff --git a/modules/nixos/selfhosted/glance/default.nix b/modules/nixos/selfhosted/glance/default.nix index ca263a0..b9bccb9 100644 --- a/modules/nixos/selfhosted/glance/default.nix +++ b/modules/nixos/selfhosted/glance/default.nix @@ -1,4 +1,9 @@ -{username, ...}: let +{ + username, + lib, + config, + ... +}: let home = import ./home.nix; in { services = { @@ -19,20 +24,20 @@ in { }; }; - # nginx = { - # enable = lib.mkForce true; - # virtualHosts = { - # "dashboard.tux.rs" = { - # forceSSL = true; - # useACMEHost = "tux.rs"; - # locations = { - # "/" = { - # proxyPass = "http://${config.services.glance.settings.server.host}:${toString config.services.glance.settings.server.port}"; - # proxyWebsockets = true; - # }; - # }; - # }; - # }; - # }; + nginx = { + enable = lib.mkForce true; + virtualHosts = { + "home.tux.rs" = { + forceSSL = true; + useACMEHost = "tux.rs"; + locations = { + "/" = { + proxyPass = "http://${config.services.glance.settings.server.host}:${toString config.services.glance.settings.server.port}"; + proxyWebsockets = true; + }; + }; + }; + }; + }; }; }