From 8a10ea437cf74619865e0966f8be8f16e6cba938 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Mon, 5 Dec 2022 16:37:27 +0100 Subject: update to nixos22.11 --- flora/configuration.nix | 3 --- flora/hardware-configuration.nix | 2 +- flora/services/daemoniones.nix | 34 ---------------------------------- 3 files changed, 1 insertion(+), 38 deletions(-) delete mode 100644 flora/services/daemoniones.nix (limited to 'flora') diff --git a/flora/configuration.nix b/flora/configuration.nix index 07d1049..7e733e2 100644 --- a/flora/configuration.nix +++ b/flora/configuration.nix @@ -3,12 +3,9 @@ { imports = [ ./hardware-configuration.nix - # ./services/hedgedoc.nix - #./services/daemoniones.nix ./services/nginx.nix ./services/pleroma.nix ./services/cgit.nix - # ./services/surveys.nix #./services/picarones.nix ./services/dockerhub.nix ./services/blog.nix diff --git a/flora/hardware-configuration.nix b/flora/hardware-configuration.nix index 2ce21f4..4dce1d1 100644 --- a/flora/hardware-configuration.nix +++ b/flora/hardware-configuration.nix @@ -20,6 +20,6 @@ swapDevices = [ ]; - nix.maxJobs = lib.mkDefault 1; + nix.settings.max-jobs = lib.mkDefault 1; } diff --git a/flora/services/daemoniones.nix b/flora/services/daemoniones.nix deleted file mode 100644 index ae9d3cb..0000000 --- a/flora/services/daemoniones.nix +++ /dev/null @@ -1,34 +0,0 @@ -{ config, pkgs, ...}: - -{ - systemd.services = - let simpledaemon = name: command: { - enable = true; - description = name; - wantedBy = [ "multi-user.target" ]; - serviceConfig.Type = "simple"; - script = command; - }; - in { - choclo = simpledaemon "choclo signalling server" "/root/simple-signalling/target/release/chaski -b 127.0.0.1:5000"; - wasi = simpledaemon "wasi backend" "/root/wasi-minimal/target/release/wasi"; -# picarones = simpledaemon "picarones backend" "/root/picarones-server/target/release/picarones -b 127.0.0.1:6000"; - }; - - services.nginx = { - virtualHosts = - let websocketproxy = addr: { - locations."/".proxyPass = addr; - forceSSL = true; - enableACME = true; - locations."/".proxyWebsockets = true; - }; - in { - "wasi.stuebinm.eu" = websocketproxy "http://127.0.0.1:9000"; - "choclo.stuebinm.eu" = websocketproxy "http://127.0.0.1:5000"; -# "picarones.stuebinm.eu" = websocketproxy "http://127.0.0.1:6000"; - }; - }; - - -} -- cgit v1.2.3