1
0
mirror of https://github.com/kmein/niveum synced 2026-03-18 02:51:08 +01:00
Files
niveum/configs/spotify.nix
2020-05-20 00:06:26 +02:00

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";
};
};
};
}