1
Fork 0
satellite/home/features/desktop/spotifyd/default.nix
2023-06-18 18:10:20 +02:00

17 lines
516 B
Nix

{ config, lib, pkgs, ... }: {
services.spotifyd = {
enable = true;
settings = {
global = {
username = "mjmsimuzc910khmr6yoccgtyr";
device_name = "nix"; # TODO: perhaps include the hostname here?
password_cmd =
# TODO: move this in it's own module
let identities = builtins.concatStringsSep " " (map (path: "-i ${path}") config.homeage.identityPaths);
in "${lib.getExe pkgs.age} --decrypt ${identities} ${./password.age}";
};
};
};
}