feat: music stuff
This commit is contained in:
parent
da5352d5d8
commit
ba1d3b96ed
|
@ -67,6 +67,7 @@ in {
|
||||||
unstable.liferea
|
unstable.liferea
|
||||||
unstable.gh
|
unstable.gh
|
||||||
unstable.flyctl
|
unstable.flyctl
|
||||||
|
unstable.sublime-music
|
||||||
|
|
||||||
kooha
|
kooha
|
||||||
light
|
light
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
{
|
{
|
||||||
services.jackett = {
|
services.jackett = {
|
||||||
enable = true;
|
enable = true;
|
||||||
host = "0.0.0.0";
|
|
||||||
port = 8011;
|
port = 8011;
|
||||||
user = "jackett";
|
user = "jackett";
|
||||||
group = "transmission";
|
group = "transmission";
|
||||||
|
package = pkgs.unstable.jackett;
|
||||||
};
|
};
|
||||||
services.nginx.virtualHosts."jackett.mossnet.lan" = {
|
services.nginx.virtualHosts."jackett.mossnet.lan" = {
|
||||||
enableACME = false;
|
enableACME = false;
|
||||||
|
@ -19,10 +19,8 @@
|
||||||
};
|
};
|
||||||
services.lidarr = {
|
services.lidarr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
host = "0.0.0.0";
|
user = "headphones";
|
||||||
port = 8012;
|
group = "audio";
|
||||||
user = "lidarr";
|
|
||||||
group = "transmission";
|
|
||||||
};
|
};
|
||||||
services.nginx.virtualHosts."lidarr.mossnet.lan" = {
|
services.nginx.virtualHosts."lidarr.mossnet.lan" = {
|
||||||
enableACME = false;
|
enableACME = false;
|
||||||
|
@ -30,7 +28,7 @@
|
||||||
|
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_pass http://127.0.0.1:8012/;
|
proxy_pass http://127.0.0.1:8686/;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
environment.systemPackages = [ pkgs.beets ];
|
||||||
services.transmission = {
|
services.transmission = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -9,11 +10,10 @@
|
||||||
script-torrent-done-enabled = true;
|
script-torrent-done-enabled = true;
|
||||||
# Normally, I would write this into the homedir with home-manager
|
# 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
|
# 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" ''
|
script-torrent-done-filename = pkgs.writeShellScript "beet-import.sh" ''
|
||||||
#!/usr/bin/env bash
|
#!/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/";
|
rpc-url = "/transmission/rpc/";
|
||||||
download-dir = "/mnt/two/new-music";
|
download-dir = "/mnt/two/new-music";
|
||||||
|
|
|
@ -57,7 +57,7 @@ in {
|
||||||
#...
|
#...
|
||||||
};
|
};
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pkgs.gonic}/bin/gonic -config-path /etc/gonic/config";
|
ExecStart = "${pkgs.gonic}/bin/gonic -config-path /etc/gonic/config -scan-watcher-enabled -scan-interval 600";
|
||||||
WorkingDirectory = dataFolder;
|
WorkingDirectory = dataFolder;
|
||||||
TimeoutStopSec = "20";
|
TimeoutStopSec = "20";
|
||||||
KillMode = "process";
|
KillMode = "process";
|
||||||
|
|
|
@ -11,7 +11,16 @@
|
||||||
propagatedBuildInputs = prevAttrs.propagatedBuildInputs ++ [ final.python3.pkgs.jsonschema ]; # allow kobo sync stuff
|
propagatedBuildInputs = prevAttrs.propagatedBuildInputs ++ [ final.python3.pkgs.jsonschema ]; # allow kobo sync stuff
|
||||||
});
|
});
|
||||||
mautrix-signal = prev.mautrix-signal.overrideAttrs (prevAttrs: rec {
|
mautrix-signal = prev.mautrix-signal.overrideAttrs (prevAttrs: rec {
|
||||||
buildInputs = prevAttrs.propagatedBuildInputs ++ [ final.python3.pkgs.aiosqlite ]; # We're using sqlite and upstream doesn't package this dependency
|
buildInputs = prevAttrs.buildInputs ++ [ final.python3.pkgs.aiosqlite ]; # We're using sqlite and upstream doesn't package this dependency
|
||||||
|
withGoolm = true;
|
||||||
|
});
|
||||||
|
# headphones is not very stable...
|
||||||
|
# this is fixed in newer commits, but no release has gone out
|
||||||
|
# patching whitespace with sed is insane
|
||||||
|
headphones = prev.headphones.overrideAttrs (prevAttrs: rec {
|
||||||
|
patchPhase = ''
|
||||||
|
sed -i '1395s/^\([[:space:]]*\).*/\1"cat": "3000",/' headphones/searcher.py
|
||||||
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
wallabag = prev.wallabag.overrideAttrs (attrs: {
|
wallabag = prev.wallabag.overrideAttrs (attrs: {
|
||||||
|
|
Loading…
Reference in a new issue