21 lines
571 B
Nix
21 lines
571 B
Nix
|
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
||
|
#
|
||
|
# SPDX-License-Identifier: Apache-2.0
|
||
|
|
||
|
{ pkgs, depot, lib, ... }:
|
||
|
{
|
||
|
config = {
|
||
|
systemd.services.nhsenglandtests = {
|
||
|
enable = true;
|
||
|
wantedBy = [ "multi-user.target" ];
|
||
|
after = [ "network.target" ];
|
||
|
wants = [ "network.target" ];
|
||
|
serviceConfig = {
|
||
|
DynamicUser = true;
|
||
|
User = "nhsenglandtests";
|
||
|
ExecStart = "${depot.go.nhsenglandtests}/bin/nhsenglandtests --telegram_token=${depot.ops.secrets.telegram.nhsenglandtests}";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|