1
0
Fork 0

Compare commits

...

2 commits

Author SHA1 Message Date
Daniel Kempkens cc7edc9369
Update deps
All checks were successful
Build / build-amd64-linux (push) Successful in 1m7s
Build / build-arm64-linux (push) Successful in 3m18s
2024-02-11 19:07:27 +01:00
Daniel Kempkens d79dee8f55
ddg: add module 2024-02-11 19:07:09 +01:00
3 changed files with 36 additions and 14 deletions

View file

@ -236,11 +236,11 @@
]
},
"locked": {
"lastModified": 1707607386,
"narHash": "sha256-hj/RgQMTvCWQVInkZwiMMieumkfOjHXhtWhfuXHop/8=",
"lastModified": 1707672157,
"narHash": "sha256-dzfGf+R+ECFKe4rw42vUn5mV0hMSGQRVJlhjRHs3cvM=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "bfd0ae29a86eff4603098683b516c67e22184511",
"rev": "a09cfdbaf11c821340cff24d9ad1c264708ee12e",
"type": "github"
},
"original": {
@ -305,11 +305,11 @@
]
},
"locked": {
"lastModified": 1707616878,
"narHash": "sha256-lH3dtOn7N62gPriphyoFaGPhqhG9XPSv7KLT0OuaFKY=",
"lastModified": 1707674459,
"narHash": "sha256-rdAPFBkXksyBxANAoMvIcgtS1TqnRTikl+89MLZPfWQ=",
"ref": "refs/heads/master",
"rev": "0ceb77bd40e3a815e4d7b45a7008bc309bdc2ce6",
"revCount": 705,
"rev": "a20b38c0d68501207e6b22d6f376f00d18e37b58",
"revCount": 706,
"type": "git",
"url": "https://git.kempkens.io/daniel/nix-overlay"
},
@ -356,11 +356,11 @@
},
"nixos-unstable": {
"locked": {
"lastModified": 1707553665,
"narHash": "sha256-r4c+DhHqIxFBDjmuItgv7pOzm75pR33MjhTx+wlRol0=",
"lastModified": 1707594574,
"narHash": "sha256-dsNAxqxAjajzZKJtMDyKCl6R2VOHCG5B5F0kmb08lA4=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "8f9789aa7fe8fab4cc1bb41b7c7331cac9a36bbf",
"rev": "4907e7a50c83b6214239d30a833f59493754eb48",
"type": "github"
},
"original": {
@ -372,11 +372,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1707451808,
"narHash": "sha256-UwDBUNHNRsYKFJzyTMVMTF5qS4xeJlWoeyJf+6vvamU=",
"lastModified": 1707588924,
"narHash": "sha256-0e1ce6X5ghapv6cAF9rxLZKeNyFHHXsLbGxN2cQQE8U=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "442d407992384ed9c0e6d352de75b69079904e4e",
"rev": "10b813040df67c4039086db0f6eaf65c536886c6",
"type": "github"
},
"original": {

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";
};
};
}