diff --git a/hosts/arcturus/default.nix b/hosts/arcturus/default.nix index 7cb76a7..594ce29 100644 --- a/hosts/arcturus/default.nix +++ b/hosts/arcturus/default.nix @@ -29,7 +29,7 @@ ../../modules/nixos/selfhosted/nextcloud.nix ../../modules/nixos/selfhosted/silver-bullet.nix ../../modules/nixos/selfhosted/rustdesk-server.nix - ../../modules/nixos/selfhosted/containers/cs2.nix + ../../modules/nixos/selfhosted/kasmweb.nix ]; tux.services.openssh.enable = true; diff --git a/modules/nixos/selfhosted/kasmweb.nix b/modules/nixos/selfhosted/kasmweb.nix new file mode 100644 index 0000000..a756a25 --- /dev/null +++ b/modules/nixos/selfhosted/kasmweb.nix @@ -0,0 +1,24 @@ +{lib, ...}: { + services = { + kasmweb = { + enable = true; + listenPort = 8843; + }; + + nginx = { + enable = lib.mkForce true; + virtualHosts = { + "kasm.tux.rs" = { + forceSSL = true; + useACMEHost = "tux.rs"; + locations = { + "/" = { + proxyPass = "https://127.0.0.1:8843"; + proxyWebsockets = true; + }; + }; + }; + }; + }; + }; +}