mirror of
https://github.com/kmein/niveum
synced 2026-03-21 12:21:08 +01:00
feat: spotifyd, spotify-tui
This commit is contained in:
21
configs/spotify.nix
Normal file
21
configs/spotify.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ pkgs, lib, ... }:
|
||||
let
|
||||
inherit (import <niveum/lib> { inherit pkgs; }) toTOML;
|
||||
inherit (lib.strings) fileContents;
|
||||
in
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
spotify
|
||||
spotify-tui
|
||||
];
|
||||
|
||||
services.spotifyd = {
|
||||
enable = true;
|
||||
config = toTOML {
|
||||
global = {
|
||||
username = fileContents <shared-secrets/spotify/username>;
|
||||
password_cmd = "${pkgs.pass}/bin/pass shared/spotify/password";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user