Shift home config to enable by desktop, work out more details later
This commit is contained in:
parent
d873588c59
commit
77168ba9c7
37 changed files with 120 additions and 127 deletions
|
@ -1,20 +1,22 @@
|
|||
{ pkgs, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [ mpc-cli ];
|
||||
config = lib.mkIf config.home.desktop.enable {
|
||||
home.packages = with pkgs; [ mpc-cli ];
|
||||
|
||||
programs.ncmpcpp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
browser_sort_mode = "name";
|
||||
user_interface = "alternative";
|
||||
programs.ncmpcpp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
browser_sort_mode = "name";
|
||||
user_interface = "alternative";
|
||||
};
|
||||
bindings = [
|
||||
{ key = "h"; command = "volume_down"; }
|
||||
{ key = "j"; command = "scroll_down"; }
|
||||
{ key = "k"; command = "scroll_up"; }
|
||||
{ key = "l"; command = "volume_up"; }
|
||||
];
|
||||
};
|
||||
bindings = [
|
||||
{ key = "h"; command = "volume_down"; }
|
||||
{ key = "j"; command = "scroll_down"; }
|
||||
{ key = "k"; command = "scroll_up"; }
|
||||
{ key = "l"; command = "volume_up"; }
|
||||
];
|
||||
};
|
||||
|
||||
services.mpd-discord-rpc.enable = true;
|
||||
services.mpd-discord-rpc.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ pkgs, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
home = {
|
||||
home = lib.mkIf config.home.desktop.enable {
|
||||
packages = with pkgs; [ spotdl ];
|
||||
shellAliases.spotdl = "spotdl --m3u --format opus";
|
||||
};
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
{ ... }:
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
programs.yt-dlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
add-metadata = true;
|
||||
embed-thumbnail = true;
|
||||
convert-thumbnails = "jpg";
|
||||
audio-format = "opus";
|
||||
output = ''"%(artist)s - %(title)s.%(ext)s"'';
|
||||
config = lib.mkIf config.home.desktop.enable {
|
||||
programs.yt-dlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
add-metadata = true;
|
||||
embed-thumbnail = true;
|
||||
convert-thumbnails = "jpg";
|
||||
audio-format = "opus";
|
||||
output = ''"%(artist)s - %(title)s.%(ext)s"'';
|
||||
};
|
||||
};
|
||||
home.shellAliases.opusdl = ''yt-dlp -f ba -x --audio-quality 0'';
|
||||
};
|
||||
|
||||
home.shellAliases.opusdl = ''yt-dlp -f ba -x --audio-quality 0'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue