blob: 1e396cdee5a0e09d90858e61dccd6bbbac816c51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{ config, lib, pkgs, ... }:
let cfg = config.profiles.multimedia;
in
{
options.profiles.multimedia = {
enable = lib.mkEnableOption
"A profile that enables the system to be used for consuming multimedia contents.";
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [ spotify-tui ];
services.spotifyd = {
enable = true;
settings = {
global = {
username = "9nko3f7puya1e5bbo9c5ifddy";
password_cmd = "${pkgs.pass}/bin/pass www/spotify.com | head -n1";
};
};
};
};
}
|