depot/ops/nixos/lib/nhsenglandtests.nix

21 lines
571 B
Nix
Raw Normal View History

2021-12-31 07:00:32 +00:00
# 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}";
};
};
};
}