nix-configs

Personal NixOS and home-manager configuration files
Log | Files | Refs

commit fe11293c98831eef3e9082812fe7dda639f14e82
parent 086f3a331a3e2fd997e30f2a88be62afac66cefe
Author: breadcat <breadcat@users.noreply.github.com>
Date:   Tue,  7 Apr 2026 12:17:42 +0100

Add bruschetta service

Diffstat:
Acommon/roles/bruschetta.nix | 31+++++++++++++++++++++++++++++++
Mcommon/roles/caddy-ilias.nix | 1+
Mmachines/ilias.nix | 1+
3 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/common/roles/bruschetta.nix b/common/roles/bruschetta.nix @@ -0,0 +1,31 @@ +{ config, pkgs, username, domain, ... }: + +{ + # Systemd service + systemd.services.bruschetta = { + description = "Bruschetta Go Application"; + wantedBy = [ "multi-user.target" ]; + after = [ "network.target" ]; + + serviceConfig = { + Type = "simple"; + User = "${username}"; + WorkingDirectory = "/home/${username}/vault/src/bruschetta"; + ExecStart = "${pkgs.go}/bin/go run . -d /home/${username}/vault/pub -p 9091"; + Restart = "on-failure"; + RestartSec = "5s"; + }; + + environment = { + HOME = "/home/${username}"; + GOPATH = "/home/${username}/go"; + }; + + path = with pkgs; [ + gcc + go + ]; + + }; + +} diff --git a/common/roles/caddy-ilias.nix b/common/roles/caddy-ilias.nix @@ -8,6 +8,7 @@ let services = { + pub = { host = "127.0.0.1"; port = 9091; }; stream = { host = "127.0.0.1"; port = 8080; }; weight = { host = "127.0.0.1"; port = 9090; }; }; diff --git a/machines/ilias.nix b/machines/ilias.nix @@ -16,6 +16,7 @@ let machine = "ilias"; in { ../common/networking.nix ../common/packages.nix ../common/roles/caddy-${machine}.nix + ../common/roles/bruschetta.nix ../common/roles/gnocchi.nix ../common/roles/nfs-server.nix ../common/roles/stromboli.nix