From 570422d8019a8b03d250930f8d2c12a6aadea2c2 Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Thu, 12 Dec 2024 23:20:52 +0100 Subject: [PATCH] add flurry to nuos --- hosts/nuos/configuration.nix | 60 ++++++++++++++++++++++++------------ 1 file changed, 41 insertions(+), 19 deletions(-) diff --git a/hosts/nuos/configuration.nix b/hosts/nuos/configuration.nix index 646fcab..4aefc04 100644 --- a/hosts/nuos/configuration.nix +++ b/hosts/nuos/configuration.nix @@ -109,26 +109,45 @@ }; }; - systemd.services."update-from-flake" = { - path = with pkgs; [ - nixos-rebuild - git - ]; - script = '' - nixos-rebuild boot --flake github:itepastra/nixconf#nuOS - shutdown -r +5 "System will reboot in 5 minutes" - ''; - serviceConfig = { - Type = "oneshot"; - User = "root"; + systemd.services = { + "update-from-flake" = { + path = with pkgs; [ + nixos-rebuild + git + ]; + script = '' + nixos-rebuild boot --flake github:itepastra/nixconf#nuOS + shutdown -r +5 "System will reboot in 5 minutes" + ''; + serviceConfig = { + Type = "oneshot"; + User = "root"; + }; + wants = [ + "network-online.target" + ]; + after = [ + "network-online.target" + ]; + restartIfChanged = false; + }; + + "flurry" = { + description = "Pixelflut server"; + confinement.enable = true; + serviceConfig = { + ExecStart = "${inputs.flurry.packages.${pkgs.system}.default}/bin/flurry"; + ExecStop = "pkill flurry"; + Restart = "on-failure"; + }; + wants = [ + "network-online.target" + ]; + after = [ + "network-online.target" + ]; + wantedBy = [ "default.target" ]; }; - wants = [ - "network-online.target" - ]; - after = [ - "network-online.target" - ]; - restartIfChanged = false; }; virtualisation = { @@ -279,6 +298,7 @@ }; "calendar.itepastra.nl" = proxy "itepastra.nl" "http://[::1]:29341"; + "flurry.itepastra.nl" = proxy "itepastra.nl" "http://127.0.0.1:3000"; # home-assistant proxy "home.itepastra.nl" = proxy "itepastra.nl" "http://[::1]:8123"; @@ -311,6 +331,8 @@ 8443 # nifi + 7791 # flurry + 25565 # minecraft 24454 # minecraft (voice)