nixos-config/home/programs/music/yams.nix
2024-03-17 11:26:16 +01:00

20 lines
488 B
Nix

{pkgs, ...}: {
# authentication needs to be done manually once
# TODO automatic authentication thing
home.packages = with pkgs; [yams];
systemd.user.services.yams = {
Unit = {
Description = "yams";
Requires = ["mpd.service"];
After = ["mpd.service"];
};
Install = {
WantedBy = ["default.target"];
};
Service = {
Type = "simple";
Environment = "NON_INTERACTIVE=1";
ExecStart = "${pkgs.yams}/bin/yams -N";
};
};
}