Shift home config to enable by desktop, work out more details later

This commit is contained in:
Jimbo 2025-01-01 11:30:16 -05:00
parent d873588c59
commit 77168ba9c7
37 changed files with 120 additions and 127 deletions

View file

@ -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;
};
}

View file

@ -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";
};

View file

@ -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'';
}