mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 17:03:56 -05:00
24 lines
476 B
Nix
24 lines
476 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
|
|
}:
|
|
{
|
|
sops.secrets.discordenv = { };
|
|
|
|
systemd.services.parrot = {
|
|
wantedBy = [ "multi-user.target" ];
|
|
wants = [ "network-online.target" ];
|
|
after = [ "network-online.target" ];
|
|
|
|
environment.SETTINGS_PATH = "/persist/services/parrot";
|
|
|
|
serviceConfig = {
|
|
ExecStart = lib.getExe pkgs.parrot;
|
|
EnvironmentFile = config.sops.secrets.discordenv.path;
|
|
Restart = "on-failure";
|
|
RestartSec = "30s";
|
|
};
|
|
};
|
|
}
|