1
0
Fork 0
dotfiles/system/nixos/ddg.nix
2024-02-11 19:07:09 +01:00

22 lines
518 B
Nix

{ pkgs, lib, ... }:
{
systemd.services.ddg =
let
mounts = [ "mnt-media\\x2dscraper.mount" ];
in
{
description = "discord-downloader-go service";
requires = mounts;
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "exec";
WorkingDirectory = "/mnt/media-scraper/Discord";
User = "media_user";
Group = "media_group";
ExecStart = "${lib.getExe pkgs.discord-downloader-go}";
Restart = "on-failure";
};
};
}