enabled ncmpcpp
This commit is contained in:
parent
ef91a2a87c
commit
84d2e9d650
6 changed files with 32 additions and 21 deletions
|
@ -1,6 +1,7 @@
|
||||||
{ config, inputs, pkgs, ... }:
|
{ config, inputs, pkgs, ... }:
|
||||||
{
|
{
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
# Time Zone
|
||||||
time.timeZone = "Europe/Zurich";
|
time.timeZone = "Europe/Zurich";
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
@ -47,6 +48,7 @@
|
||||||
};
|
};
|
||||||
programs = {
|
programs = {
|
||||||
vesktop.enable = true;
|
vesktop.enable = true;
|
||||||
|
ncmpcpp.enable = true;
|
||||||
ssh.enable = true;
|
ssh.enable = true;
|
||||||
btop.enable = true;
|
btop.enable = true;
|
||||||
mpv.enable = true;
|
mpv.enable = true;
|
||||||
|
|
|
@ -33,6 +33,7 @@ in {
|
||||||
krita
|
krita
|
||||||
lazygit
|
lazygit
|
||||||
libreoffice-fresh
|
libreoffice-fresh
|
||||||
|
moc
|
||||||
ncmpcpp
|
ncmpcpp
|
||||||
neofetch
|
neofetch
|
||||||
neovim
|
neovim
|
||||||
|
|
|
@ -40,12 +40,20 @@ in {
|
||||||
searxQuery = "https://searx.be/search?q={searchTerms}&categories=general";
|
searxQuery = "https://searx.be/search?q={searchTerms}&categories=general";
|
||||||
addEngines = [
|
addEngines = [
|
||||||
{
|
{
|
||||||
Name = "Etherscan";
|
Name = "NixOS Packages";
|
||||||
Description = "Checking balances";
|
Description = "NixOS Unstable package serach";
|
||||||
Alias = "!eth";
|
Alias = "!np";
|
||||||
Method = "GET";
|
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 = {
|
misc = {
|
||||||
drmFix = true;
|
drmFix = true;
|
||||||
disableWebgl = false;
|
disableWebgl = false;
|
||||||
startPageURL = "https://startpage.com";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extensions = {
|
extensions = {
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
## ncmpcpp.
|
## ncmpcpp.
|
||||||
##
|
##
|
||||||
#
|
#
|
||||||
#ncmpcpp_directory = ~/.config/ncmpcpp
|
ncmpcpp_directory = ~/.config/ncmpcpp
|
||||||
#
|
#
|
||||||
##
|
##
|
||||||
## Directory for storing downloaded lyrics. It defaults to ~/.lyrics since other
|
## Directory for storing downloaded lyrics. It defaults to ~/.lyrics since other
|
||||||
|
@ -25,13 +25,13 @@
|
||||||
#
|
#
|
||||||
#mpd_host = localhost
|
#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.
|
## Needed for tag editor and file operations to work.
|
||||||
##
|
##
|
||||||
#mpd_music_dir = ~/music
|
mpd_music_dir = ~/Nextcloud/Media/Music
|
||||||
#
|
#
|
||||||
#mpd_crossfade_time = 5
|
#mpd_crossfade_time = 5
|
||||||
#
|
#
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
## visualizer.
|
## visualizer.
|
||||||
##
|
##
|
||||||
#
|
#
|
||||||
#visualizer_data_source = /tmp/mpd.fifo
|
visualizer_data_source = /tmp/mpd.fifo
|
||||||
#
|
#
|
||||||
##
|
##
|
||||||
## Note: Below parameter is needed for ncmpcpp to determine which output
|
## Note: Below parameter is needed for ncmpcpp to determine which output
|
||||||
|
@ -77,19 +77,19 @@
|
||||||
## to synchronize with audio.
|
## 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'.
|
## 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
|
## Note: set below to >=10 only if you have synchronization issues with
|
||||||
## visualization and audio.
|
## visualization and audio.
|
||||||
##
|
##
|
||||||
#
|
#
|
||||||
#visualizer_sync_interval = 0
|
visualizer_sync_interval = 0
|
||||||
#
|
#
|
||||||
##
|
##
|
||||||
## Note: To enable spectrum frequency visualization you need to compile ncmpcpp
|
## Note: To enable spectrum frequency visualization you need to compile ncmpcpp
|
||||||
|
@ -98,15 +98,15 @@
|
||||||
#
|
#
|
||||||
## Available values: spectrum, wave, wave_filled, ellipse.
|
## 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.
|
## 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
|
## and visualizer_in_stereo set, artifacts may be visible on the bottom half of
|
||||||
## the visualization.
|
## 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
|
## 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
|
## visualizer look at a larger slice of time, which results in less jumpy
|
||||||
|
|
|
@ -4,5 +4,6 @@ _: {
|
||||||
# ./helix.nix
|
# ./helix.nix
|
||||||
./neovim.nix
|
./neovim.nix
|
||||||
# ./newsboat.nix
|
# ./newsboat.nix
|
||||||
|
./ncmpcpp.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.myOptions.programs.ncmpcpp
|
cfg = config.myOptions.programs.ncmpcpp;
|
||||||
username = config.myOptions.other.system.username;
|
username = config.myOptions.other.system.username;
|
||||||
in {
|
in {
|
||||||
options.myOptions.programs.ncmpcpp.enable = mkEnableOption "ncmpcpp";
|
options.myOptions.programs.ncmpcpp.enable = mkEnableOption "ncmpcpp";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home-manager.users.${username} = {
|
home-manager.users.${username} = {
|
||||||
|
xdg.configFile."ncmpcpp/config".source = ./config;
|
||||||
programs.ncmpcpp = {
|
programs.ncmpcpp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
mpdMusicDir = "/home/vali/Nextcloud/Media/Music";
|
mpdMusicDir = "/home/vali/Nextcloud/Media/Music";
|
||||||
xdg.configFile."ncmpcpp/config".source = ./config;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue