mirror of
https://github.com/kmein/niveum
synced 2026-03-18 02:51:08 +01:00
22 lines
447 B
Nix
22 lines
447 B
Nix
{ 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";
|
|
};
|
|
};
|
|
};
|
|
}
|