feat: music stuff

This commit is contained in:
Anish Lakhwara
2025-05-03 22:45:42 -07:00
parent da5352d5d8
commit ba1d3b96ed
5 changed files with 18 additions and 10 deletions
+1
View File
@@ -67,6 +67,7 @@ in {
unstable.liferea
unstable.gh
unstable.flyctl
unstable.sublime-music
kooha
light
+4 -6
View File
@@ -2,10 +2,10 @@
{
services.jackett = {
enable = true;
host = "0.0.0.0";
port = 8011;
user = "jackett";
group = "transmission";
package = pkgs.unstable.jackett;
};
services.nginx.virtualHosts."jackett.mossnet.lan" = {
enableACME = false;
@@ -19,10 +19,8 @@
};
services.lidarr = {
enable = true;
host = "0.0.0.0";
port = 8012;
user = "lidarr";
group = "transmission";
user = "headphones";
group = "audio";
};
services.nginx.virtualHosts."lidarr.mossnet.lan" = {
enableACME = false;
@@ -30,7 +28,7 @@
locations."/" = {
extraConfig = ''
proxy_pass http://127.0.0.1:8012/;
proxy_pass http://127.0.0.1:8686/;
'';
};
};
+2 -2
View File
@@ -1,5 +1,6 @@
{ pkgs, ... }:
{
environment.systemPackages = [ pkgs.beets ];
services.transmission = {
enable = true;
settings = {
@@ -9,11 +10,10 @@
script-torrent-done-enabled = true;
# Normally, I would write this into the homedir with home-manager
# And explictly set the dir to be the output of the home-manager location
# But this seems better, if it'll work?
script-torrent-done-filename = pkgs.writeShellScript "beet-import.sh" ''
#!/usr/bin/env bash
beet import -ql "$TR_TORRENT_DIR"
beet -p fetchart import -l /home/anish/music.log -q -g "$TR_TORRENT_DIR"
'';
rpc-url = "/transmission/rpc/";
download-dir = "/mnt/two/new-music";