nix-configs

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

commit e0e9646b6f4cd1afae31095c78a5c7ba168cf948
parent 280dd270a3a8e81d80adc351ecb6d60e7b102746
Author: breadcat <breadcat@users.noreply.github.com>
Date:   Sun, 28 Jun 2026 11:40:59 +0100

Add limoncello service

Diffstat:
Mcommon/caddy-ilias.nix | 1+
Acommon/limoncello.nix | 28++++++++++++++++++++++++++++
Mmachines/ilias.nix | 1+
3 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/common/caddy-ilias.nix b/common/caddy-ilias.nix @@ -8,6 +8,7 @@ let services = { + drink = { host = "127.0.0.1"; port = 9092; }; 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/common/limoncello.nix b/common/limoncello.nix @@ -0,0 +1,28 @@ +{ config, pkgs, vars, ... }: + +{ + # Systemd service + systemd.services.limoncello = { + description = "Limoncello Go Application"; + wantedBy = [ "multi-user.target" ]; + after = [ "network.target" ]; + + serviceConfig = { + Type = "simple"; + User = "${vars.user.username}"; + WorkingDirectory = "/home/${vars.user.username}/vault/src/limoncello"; + ExecStart = "${pkgs.go}/bin/go run . -f /home/${vars.user.username}/vault/src/limoncello/units.json -p 9092"; + Restart = "on-failure"; + RestartSec = "5s"; + }; + + environment = { + HOME = "/home/${vars.user.username}"; + GOPATH = "/home/${vars.user.username}/go"; + }; + + path = with pkgs; [ "/run/current-system/sw" gcc go ]; + + }; + +} diff --git a/machines/ilias.nix b/machines/ilias.nix @@ -14,6 +14,7 @@ let machine = "ilias"; in { ../common/garbage.nix ../common/gnocchi.nix ../common/home-manager.nix + ../common/limoncello.nix ../common/locale.nix ../common/mount-drives.nix ../common/networking.nix