enabled ncmpcpp

This commit is contained in:
Charlie Root 2024-04-13 00:56:24 +02:00
commit 84d2e9d650
6 changed files with 32 additions and 21 deletions

View file

@ -40,12 +40,20 @@ in {
searxQuery = "https://searx.be/search?q={searchTerms}&categories=general";
addEngines = [
{
Name = "Etherscan";
Description = "Checking balances";
Alias = "!eth";
Name = "NixOS Packages";
Description = "NixOS Unstable package serach";
Alias = "!np";
Method = "GET";
URLTemplate = "https://etherscan.io/search?f=0&q={searchTerms}";
URLTemplate = "https://search.nixos.org/packages?channel=unstable&query={searchTerms}";
}
{
Name = "Home Manager Options";
Description = "Home Manager option search";
Alias = "!hm";
Method = "GET";
URLTemplate = "https://mipmip.github.io/home-manager-option-search?query={searchTerms}";
}
];
};
@ -58,7 +66,6 @@ in {
misc = {
drmFix = true;
disableWebgl = false;
startPageURL = "https://startpage.com";
};
extensions = {

View file

@ -12,7 +12,7 @@
## ncmpcpp.
##
#
#ncmpcpp_directory = ~/.config/ncmpcpp
ncmpcpp_directory = ~/.config/ncmpcpp
#
##
## Directory for storing downloaded lyrics. It defaults to ~/.lyrics since other
@ -25,13 +25,13 @@
#
#mpd_host = localhost
#
#mpd_port = 6600
mpd_port = 6600
#
#mpd_connection_timeout = 5
mpd_connection_timeout = 5
#
## Needed for tag editor and file operations to work.
##
#mpd_music_dir = ~/music
mpd_music_dir = ~/Nextcloud/Media/Music
#
#mpd_crossfade_time = 5
#
@ -69,7 +69,7 @@
## visualizer.
##
#
#visualizer_data_source = /tmp/mpd.fifo
visualizer_data_source = /tmp/mpd.fifo
#
##
## Note: Below parameter is needed for ncmpcpp to determine which output
@ -77,19 +77,19 @@
## to synchronize with audio.
##
#
#visualizer_output_name = Visualizer feed
visualizer_output_name = Visualizer feed
#
##
## If you set format to 44100:16:2, make it 'yes'.
##
#visualizer_in_stereo = yes
visualizer_in_stereo = yes
#
##
## Note: set below to >=10 only if you have synchronization issues with
## visualization and audio.
##
#
#visualizer_sync_interval = 0
visualizer_sync_interval = 0
#
##
## Note: To enable spectrum frequency visualization you need to compile ncmpcpp
@ -98,15 +98,15 @@
#
## Available values: spectrum, wave, wave_filled, ellipse.
##
#visualizer_type = spectrum
visualizer_type = wave_filled
#
#visualizer_fps = 60
visualizer_fps = 60
#
#visualizer_autoscale = no
visualizer_autoscale = no
#
#visualizer_look = ●▮
visualizer_look = ●▮
#
#visualizer_color = blue, cyan, green, yellow, magenta, red
visualizer_color = blue, cyan, green, yellow, magenta, red
#
## Alternative subset of 256 colors for terminals that support it.
##
@ -121,7 +121,7 @@
## and visualizer_in_stereo set, artifacts may be visible on the bottom half of
## the visualization.
#
#visualizer_spectrum_smooth_look = yes
visualizer_spectrum_smooth_look = yes
#
## A value between 1 and 5 inclusive. Specifying a larger value makes the
## visualizer look at a larger slice of time, which results in less jumpy

View file

@ -4,5 +4,6 @@ _: {
# ./helix.nix
./neovim.nix
# ./newsboat.nix
./ncmpcpp.nix
];
}

View file

@ -1,16 +1,16 @@
{ config, lib, pkgs, ... }:
with lib; let
cfg = config.myOptions.programs.ncmpcpp
cfg = config.myOptions.programs.ncmpcpp;
username = config.myOptions.other.system.username;
in {
options.myOptions.programs.ncmpcpp.enable = mkEnableOption "ncmpcpp";
config = mkIf cfg.enable {
home-manager.users.${username} = {
xdg.configFile."ncmpcpp/config".source = ./config;
programs.ncmpcpp = {
enable = true;
mpdMusicDir = "/home/vali/Nextcloud/Media/Music";
xdg.configFile."ncmpcpp/config".source = ./config;
};
};
};