ddg: add module
This commit is contained in:
parent
0425be9454
commit
d79dee8f55
2 changed files with 23 additions and 1 deletions
|
@ -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
22
system/nixos/ddg.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue