commit 11a6283aa7ac5caf7cb99979055e04f68a577997
parent 7163aff7a04f2e603d6a07aa3fd982ec0ead3ceb
Author: breadcat <breadcat@users.noreply.github.com>
Date: Thu, 5 Feb 2026 14:33:51 +0000
Add stromboli to NAS
Runs as root because we're running it on port 80
Diffstat:
2 files changed, 36 insertions(+), 1 deletion(-)
diff --git a/common/stromboli.nix b/common/stromboli.nix
@@ -0,0 +1,34 @@
+{ config, pkgs, username, ... }:
+
+{
+ # Systemd service
+ systemd.services.stromboli = {
+ description = "Stromboli Go Application";
+ wantedBy = [ "multi-user.target" ];
+ after = [ "network.target" ];
+
+ serviceConfig = {
+ Type = "simple";
+ WorkingDirectory = "/home/${username}/vault/src/stromboli";
+ ExecStart = "${pkgs.go}/bin/go run . -d /tank/media/videos/ -p 80";
+ Restart = "on-failure";
+ RestartSec = "5s";
+ };
+
+ environment = {
+ HOME = "/home/${username}";
+ GOPATH = "/home/${username}/go";
+ };
+
+ path = with pkgs; [
+ ffmpeg
+ gcc
+ go
+ ];
+
+ };
+
+ # Open firewall port
+ networking.firewall.allowedTCPPorts = [ 80 ];
+
+}
diff --git a/machines/ilias.nix b/machines/ilias.nix
@@ -14,12 +14,13 @@ let machine = "ilias"; in {
../common/locale.nix
../common/mount-drives.nix
../common/networking.nix
- ../common/taggart.nix
../common/nfs-server.nix
../common/packages.nix
../common/ssh.nix
../common/ssh-tunnel.nix
+ ../common/stromboli.nix
../common/syncthing.nix
+ ../common/taggart.nix
../common/user.nix
../common/zram.nix
../scripts/audiobook-cleaner.nix