nixos-config/profiles/applications/cantata.nix
2021-07-27 18:39:01 +03:00

33 lines
790 B
Nix

{ pkgs, config, ... }: {
home-manager.users.balsoft = {
home.packages = [ pkgs.cantata ];
wayland.windowManager.sway = {
config = {
assigns."" = [{ app_id = "cantata"; }];
};
};
xdg.configFile."cantata/cantata.conf".text = pkgs.my-lib.genIni {
General = {
lyricProviders = "azlyrics.com, chartlyrics.com, lyrics.wikia.com";
wikipediaLangs = "en:en";
mpris = "true";
currentConnection = "Default";
version = pkgs.cantata.version;
};
AlbumView.fullWidthCover = false;
Connection-Default = {
host = "localhost";
passwd = "";
port = "6600";
};
VolumeControl.control = "mpd";
};
};
startupApplications = [ "${pkgs.cantata}/bin/cantata" ];
}