mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
re-enable parrot and move settings file from /data/settings
This commit is contained in:
parent
ee88f6d9d8
commit
3f0c37fcb7
1 changed files with 8 additions and 4 deletions
|
|
@ -7,12 +7,16 @@ _:
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
sops.secrets.discordenv = { };
|
sops.secrets.discordenv = { };
|
||||||
|
|
||||||
systemd.services.parrot = {
|
systemd.services.parrot = {
|
||||||
#wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
#wants = [ "network-online.target" ];
|
wants = [ "network-online.target" ];
|
||||||
#after = [ "network-online.target" ];
|
after = [ "network-online.target" ];
|
||||||
script = lib.getExe pkgs.parrot;
|
|
||||||
|
environment.SETTINGS_PATH = "/persist/services/parrot";
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
ExecStart = lib.getExe pkgs.parrot;
|
||||||
EnvironmentFile = config.sops.secrets.discordenv.path;
|
EnvironmentFile = config.sops.secrets.discordenv.path;
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = "30s";
|
RestartSec = "30s";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue