1
0
Fork 0

ddg: add module

This commit is contained in:
Daniel Kempkens 2024-02-11 19:07:09 +01:00
parent 0425be9454
commit d79dee8f55
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
2 changed files with 23 additions and 1 deletions

View file

@ -23,7 +23,7 @@ in
../nixos/attic.nix
#../nixos/bdfr-browser.nix
../nixos/ddg.nix
../nixos/tailscale.nix

22
system/nixos/ddg.nix Normal file
View file

@ -0,0 +1,22 @@
{ 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";
};
};
}