1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=Modular Flyer — festival flyer distribution map
After=network.target

[Service]
Type=simple
Environment=GOPATH=%h/.go
Environment=CGO_ENABLED=0
ExecStart=/nix/store/3fd683jfggglpshxprz9mi5sz8wd3c9p-go-1.25.0/bin/go run \
  ./users/Profpatsch/modular-flyer \
  serve \
  --addr :8081 \
  users/Profpatsch/modular-flyer/modular-flyer.db
WorkingDirectory=%h/kot/Profpatsch
Restart=on-failure
RestartSec=5

[Install]
WantedBy=default.target