From eb5e5d5e0c9211115bcf12fbc68072abaaea36cc Mon Sep 17 00:00:00 2001 From: vali Date: Sat, 13 Apr 2024 00:56:24 +0200 Subject: [PATCH] enabled ncmpcpp --- hosts/vali/mars/configuration.nix | 2 ++ hosts/vali/mars/programs.nix | 1 + modules/gui/schizofox.nix | 17 ++++++++++++----- modules/tui/config | 28 ++++++++++++++-------------- modules/tui/default.nix | 1 + modules/tui/ncmpcpp.nix | 4 ++-- 6 files changed, 32 insertions(+), 21 deletions(-) diff --git a/hosts/vali/mars/configuration.nix b/hosts/vali/mars/configuration.nix index b48f6a7..b03723d 100644 --- a/hosts/vali/mars/configuration.nix +++ b/hosts/vali/mars/configuration.nix @@ -1,6 +1,7 @@ { config, inputs, pkgs, ... }: { nixpkgs.config.allowUnfree = true; + # Time Zone time.timeZone = "Europe/Zurich"; # Select internationalisation properties. i18n.defaultLocale = "en_US.UTF-8"; @@ -47,6 +48,7 @@ }; programs = { vesktop.enable = true; + ncmpcpp.enable = true; ssh.enable = true; btop.enable = true; mpv.enable = true; diff --git a/hosts/vali/mars/programs.nix b/hosts/vali/mars/programs.nix index 2785645..0aed28e 100644 --- a/hosts/vali/mars/programs.nix +++ b/hosts/vali/mars/programs.nix @@ -33,6 +33,7 @@ in { krita lazygit libreoffice-fresh + moc ncmpcpp neofetch neovim diff --git a/modules/gui/schizofox.nix b/modules/gui/schizofox.nix index fdd01e6..9591915 100644 --- a/modules/gui/schizofox.nix +++ b/modules/gui/schizofox.nix @@ -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 = { diff --git a/modules/tui/config b/modules/tui/config index 88893cf..e62ec46 100644 --- a/modules/tui/config +++ b/modules/tui/config @@ -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 diff --git a/modules/tui/default.nix b/modules/tui/default.nix index e425429..8cf84cb 100644 --- a/modules/tui/default.nix +++ b/modules/tui/default.nix @@ -4,5 +4,6 @@ _: { # ./helix.nix ./neovim.nix # ./newsboat.nix + ./ncmpcpp.nix ]; } diff --git a/modules/tui/ncmpcpp.nix b/modules/tui/ncmpcpp.nix index 1ee11e0..2aaa6f7 100644 --- a/modules/tui/ncmpcpp.nix +++ b/modules/tui/ncmpcpp.nix @@ -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; }; }; };