nixos-config/2configs/bam/ha-ara-menu.nix
2023-07-13 01:57:37 +02:00

25 lines
594 B
Nix

{pkgs, config, ... }:
let
pkg = pkgs.ha-ara-menu;
in
{
users.groups.ara-secrets = {};
sops.secrets.aramarkconfig = {
mode = "0440";
group = config.users.groups.ara-secrets.name;
};
systemd.services.ha-ara-menu = {
description = "ha-ara-menu";
wantedBy = [ "multi-user.target" ];
environment = {
ARAMARKCONFIG = config.sops.secrets."aramarkconfig".path;
};
startAt = "*:0/30";
serviceConfig = {
ExecStart = "${pkg}/bin/send";
DynamicUser = true;
SupplementaryGroups = [ config.users.groups.ara-secrets.name ];
};
};
}