diff options
| author | Akshay Nair <phenax5@gmail.com> | 2021-02-17 23:30:14 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2021-02-17 23:30:14 +0530 |
| commit | 24589a4689ec7c4a3c722daeece04d76dd5b7f12 (patch) | |
| tree | 6b3953b88f75a60c34f79946d1ccfb3e5b030324 /modules/music.nix | |
| parent | 10ef9ed4d2594679c38c46703f863419c9f0ada4 (diff) | |
| download | nixos-config-24589a4689ec7c4a3c722daeece04d76dd5b7f12.tar.gz nixos-config-24589a4689ec7c4a3c722daeece04d76dd5b7f12.zip | |
Moves configuration around to modules
Diffstat (limited to 'modules/music.nix')
| -rw-r--r-- | modules/music.nix | 102 |
1 files changed, 0 insertions, 102 deletions
diff --git a/modules/music.nix b/modules/music.nix deleted file mode 100644 index b7cc0d6..0000000 --- a/modules/music.nix +++ /dev/null @@ -1,102 +0,0 @@ -{ config, pkgs, ... }: -{ - home.packages = with pkgs; [ mpc_cli ]; - - services.mpd = { - enable = true; - musicDirectory = "${config.home.homeDirectory}/Downloads/music"; - playlistDirectory = "${config.home.homeDirectory}/Downloads/music/playlist"; - network = { - listenAddress = "0.0.0.0"; - port = 6600; - }; - extraConfig = '' - restore_paused "yes" - metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc" - auto_update "yes" - auto_update_depth "3" - follow_outside_symlinks "yes" - follow_inside_symlinks "yes" - input { - plugin "curl" - } - audio_output { - type "alsa" - name "My ALSA Device" - device "hw:0,0" - } - audio_output { - type "fifo" - name "my_fifo" - path "/tmp/mpd.fifo" - format "44100:16:2" - } - filesystem_charset "UTF-8" - ''; - }; - - programs.ncmpcpp = { - enable = true; - settings = { - # visualizer_type = "spectrum"; - user_interface = "alternative"; - playlist_display_mode = "columns"; - browser_display_mode = "columns"; - playlist_editor_display_mode = "classic"; - - empty_tag_color = "magenta"; - header_window_color = "magenta"; - volume_color = "cyan"; - state_line_color = "magenta"; - state_flags_color = "magenta:b"; - color1 = "white"; - color2 = "magenta"; - main_window_color = "white"; - progressbar_color = "black:b"; - progressbar_elapsed_color = "magenta:b"; - statusbar_color = "magenta"; - statusbar_time_color = "magenta:b"; - player_state_color = "magenta:b"; - alternative_ui_separator_color = "magenta"; - window_border_color = "magenta"; - active_window_border = "red"; - - now_playing_prefix = "$(blue)$b"; - now_playing_suffix = "$/b$(end)"; - current_item_prefix = "$(magenta)$r$b"; - current_item_suffix = "$/r$(end)$/b"; - current_item_inactive_column_prefix = "$(white)$r"; - current_item_inactive_column_suffix = "$/r$(end)"; - - media_library_primary_tag = "album_artist"; - media_library_albums_split_by_date = "no"; - startup_screen = "browser"; - ignore_leading_the = "yes"; - display_volume_level = "no"; - external_editor = "sensible-editor"; - use_console_editor = "yes"; - mouse_support = "yes"; - }; - - bindings = with builtins; let - toBinding = s: let get = elemAt s; in { key = get 0; command = get 1; }; - in map toBinding [ - ["h" ["previous_column" "master_screen" "jump_to_parent_directory"]] - ["l" ["next_column" "slave_screen" "enter_directory"]] - ["k" "scroll_up"] - ["j" "scroll_down"] - ["g" "page_up"] - ["G" "page_down"] - ["d" "delete_playlist_items"] - ["n" "next_found_item"] - ["N" "previous_found_item"] - ["P" "show_playlist_editor"] - ["B" "show_browser"] - ["s" "show_search_engine"] - ["S" "show_search_engine"] - ["ctrl-s" "save_playlist"] - ["c" "clear_main_playlist"] - ["ctrl-l" "show_lyrics"] - ]; - }; -} |
