music-server: navidrome tweaks
This commit is contained in:
parent
fdfd7ac458
commit
302e31f10e
7 changed files with 9 additions and 66 deletions
|
@ -5,7 +5,11 @@
|
||||||
#
|
#
|
||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
{
|
{
|
||||||
age.secrets.bandcamp.file = ./bandcamp.cfg.age;
|
#age.secrets.bandcamp.file = ./bandcamp.cfg.age;
|
||||||
|
age.secrets.subsonic = {
|
||||||
|
file = ./subsonic.cfg.age;
|
||||||
|
owner = "deprekated";
|
||||||
|
};
|
||||||
|
|
||||||
home-manager.users.deprekated =
|
home-manager.users.deprekated =
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
@ -18,25 +22,12 @@
|
||||||
extensionPackages = with pkgs; [
|
extensionPackages = with pkgs; [
|
||||||
mopidy-iris
|
mopidy-iris
|
||||||
mopidy-mpd
|
mopidy-mpd
|
||||||
mopidy-tidal
|
mopidy-subidy
|
||||||
(mopidy-bandcamp.overrideAttrs (prev: {
|
|
||||||
patches = [ ./001-fix-mopidy-bandcamp.patch ];
|
|
||||||
}))
|
|
||||||
];
|
];
|
||||||
|
|
||||||
settings = {
|
|
||||||
|
|
||||||
# Tidal for streaming more-commercial music.
|
|
||||||
tidal = {
|
|
||||||
enabled = true;
|
|
||||||
quality = "LOSSLESS";
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
# Probvide our bandcamp authentication as an extra config file.
|
# Probvide our bandcamp authentication as an extra config file.
|
||||||
extraConfigFiles = [
|
extraConfigFiles = [
|
||||||
config.age.secrets.bandcamp.path
|
config.age.secrets.subsonic.path
|
||||||
];
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
BIN
nixos/configs/music-server/subsonic.cfg.age
Normal file
BIN
nixos/configs/music-server/subsonic.cfg.age
Normal file
Binary file not shown.
|
@ -63,7 +63,6 @@ with pkgs;
|
||||||
cyberchef
|
cyberchef
|
||||||
dasel
|
dasel
|
||||||
delta
|
delta
|
||||||
deprekages.age-plugin-yubikey
|
|
||||||
deprekages.avbroot
|
deprekages.avbroot
|
||||||
deprekages.mergiraf
|
deprekages.mergiraf
|
||||||
difftastic
|
difftastic
|
||||||
|
|
|
@ -100,6 +100,7 @@ with pkgs;
|
||||||
kicad
|
kicad
|
||||||
obsidian
|
obsidian
|
||||||
onboard
|
onboard
|
||||||
|
supersonic
|
||||||
|
|
||||||
# Development.
|
# Development.
|
||||||
jetbrains.rust-rover
|
jetbrains.rust-rover
|
||||||
|
|
|
@ -1,48 +0,0 @@
|
||||||
{ lib
|
|
||||||
, stdenv
|
|
||||||
, rustPlatform
|
|
||||||
, fetchFromGitHub
|
|
||||||
, pkg-config
|
|
||||||
, openssl
|
|
||||||
, pcsclite
|
|
||||||
, PCSC ? null
|
|
||||||
, Foundation ? null
|
|
||||||
, IOKit ? null
|
|
||||||
}:
|
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
|
||||||
pname = "age-plugin-yubikey";
|
|
||||||
version = "0.5.0";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "str4d";
|
|
||||||
repo = "age-plugin-yubikey";
|
|
||||||
rev = "ca1cd587ff289ee1b9d8f72120e5a2acfb9560ae";
|
|
||||||
hash = "sha256-9ghnPe83K+qixaFKCdM2FCPoENTNJnZA+OmmpD0E5LE=";
|
|
||||||
};
|
|
||||||
|
|
||||||
cargoHash = "sha256-WddBZG+K6mbI35XF32BltinXkmkwpcRd8CZOB1PTwM8=";
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
pkg-config
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
openssl
|
|
||||||
]
|
|
||||||
++ lib.optional stdenv.isLinux pcsclite
|
|
||||||
++ lib.optionals stdenv.isDarwin [
|
|
||||||
IOKit
|
|
||||||
Foundation
|
|
||||||
PCSC
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "YubiKey plugin for age";
|
|
||||||
mainProgram = "age-plugin-yubikey";
|
|
||||||
homepage = "https://github.com/str4d/age-plugin-yubikey";
|
|
||||||
changelog = "https://github.com/str4d/age-plugin-yubikey/blob/${src.rev}/CHANGELOG.md";
|
|
||||||
license = with licenses; [ mit asl20 ];
|
|
||||||
maintainers = with maintainers; [ kranzes vtuan10 ];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -56,7 +56,6 @@ flake-utils.lib.eachDefaultSystem (
|
||||||
wsl-gpg-forward = callPackage ./windows/gpg-forward.nix { };
|
wsl-gpg-forward = callPackage ./windows/gpg-forward.nix { };
|
||||||
oxfs = callPackage ./oxfs.nix { };
|
oxfs = callPackage ./oxfs.nix { };
|
||||||
pcsclite = callPackage ./pcsclite.nix { };
|
pcsclite = callPackage ./pcsclite.nix { };
|
||||||
age-plugin-yubikey = callPackage ./age-plugin-yubikey.nix { inherit pcsclite; };
|
|
||||||
humanfx = callPackage ./humanfx { };
|
humanfx = callPackage ./humanfx { };
|
||||||
clipboard-sync = callPackage ./clipboard-sync.nix { };
|
clipboard-sync = callPackage ./clipboard-sync.nix { };
|
||||||
vsmartcard = callPackage ./vsmartcard.nix { };
|
vsmartcard = callPackage ./vsmartcard.nix { };
|
||||||
|
|
|
@ -21,4 +21,5 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
"nixos/configs/music-server/bandcamp.cfg.age".publicKeys = all-machine-pubkeys;
|
"nixos/configs/music-server/bandcamp.cfg.age".publicKeys = all-machine-pubkeys;
|
||||||
|
"nixos/configs/music-server/subsonic.cfg.age".publicKeys = all-machine-pubkeys;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue