diff options
Diffstat (limited to 'users/tdback/modules')
-rw-r--r-- | users/tdback/modules/email/default.nix | 1 | ||||
-rw-r--r-- | users/tdback/modules/firefox/default.nix | 18 | ||||
-rw-r--r-- | users/tdback/modules/mpd/default.nix | 3 | ||||
-rw-r--r-- | users/tdback/modules/ncmpcpp/default.nix | 139 | ||||
-rw-r--r-- | users/tdback/modules/neomutt/default.nix | 40 | ||||
-rw-r--r-- | users/tdback/modules/shell/default.nix | 5 |
6 files changed, 163 insertions, 43 deletions
diff --git a/users/tdback/modules/email/default.nix b/users/tdback/modules/email/default.nix index e5dd56d..34eef65 100644 --- a/users/tdback/modules/email/default.nix +++ b/users/tdback/modules/email/default.nix @@ -2,7 +2,6 @@ { accounts.email = { maildirBasePath = "mail"; - accounts.fastmail = { primary = true; address = "tyler@tdback.net"; diff --git a/users/tdback/modules/firefox/default.nix b/users/tdback/modules/firefox/default.nix index ab4c34e..a4e78e8 100644 --- a/users/tdback/modules/firefox/default.nix +++ b/users/tdback/modules/firefox/default.nix @@ -1,4 +1,9 @@ -{ config, pkgs, ... }: +{ + config, + lib, + pkgs, + ... +}: let lock-false = { Value = false; @@ -26,7 +31,7 @@ in SearchBar = "unified"; OfferToSaveLogins = false; EnableTrackingProtection = { - Value= true; + Value = true; Locked = true; Cryptomining = true; Fingerprinting = true; @@ -34,7 +39,10 @@ in # about:config Preferences = { - "browser.contentblocking.category" = { Value = "strict"; Status = "locked"; }; + "browser.contentblocking.category" = { + Value = "strict"; + Status = "locked"; + }; "extensions.pocket.enabled" = lock-false; "extensions.screenshots.disabled" = lock-true; "browser.topsites.contile.enabled" = lock-false; @@ -89,9 +97,9 @@ in "Google".metaData.hidden = true; "Wikipedia (en)".metaData.alias = "@w"; "searx" = { - urls = [{ + urls = lib.singleton { template = "http://10.44.4.100:8888/?q={searchTerms}"; - }]; + }; updateInterval = 24 * 60 * 60 * 1000; definedAliases = [ "@sx" ]; }; diff --git a/users/tdback/modules/mpd/default.nix b/users/tdback/modules/mpd/default.nix index 7c6381d..374add8 100644 --- a/users/tdback/modules/mpd/default.nix +++ b/users/tdback/modules/mpd/default.nix @@ -11,15 +11,12 @@ extraConfig = '' log_file "syslog" max_output_buffer_size "16384" - restore_paused "yes" auto_update "yes" - audio_output { type "pulse" name "pulseaudio" } - audio_output { type "fifo" name "Visualizer feed" diff --git a/users/tdback/modules/ncmpcpp/default.nix b/users/tdback/modules/ncmpcpp/default.nix index 970dba3..839ce34 100644 --- a/users/tdback/modules/ncmpcpp/default.nix +++ b/users/tdback/modules/ncmpcpp/default.nix @@ -35,31 +35,120 @@ }; bindings = [ - { key = "j"; command = "scroll_down"; } - { key = "k"; command = "scroll_up"; } - { key = "h"; command = [ "previous_column" "jump_to_parent_directory" ]; } - { key = "l"; command = [ "next_column" "enter_directory" "run_action" "play_item" ]; } - { key = "u"; command = "page_up"; } - { key = "d"; command = "page_down"; } - { key = "ctrl-u"; command = "page_up"; } - { key = "ctrl-d"; command = "page_down"; } - { key = "g"; command = "move_home"; } - { key = "G"; command = "move_end"; } - { key = "n"; command = "next_found_item"; } - { key = "N"; command = "previous_found_item"; } - { key = "J"; command = "move_sort_order_down"; } - { key = "K"; command = "move_sort_order_up"; } - { key = "f"; command = [ "show_browser" "change_browse_mode" ]; } - { key = "s"; command = [ "reset_search_engine" "show_search_engine" ]; } - { key = "m"; command = "toggle_media_library_columns_mode"; } - { key = "x"; command = "delete_playlist_items"; } - { key = "U"; command = "update_database"; } - { key = "P"; command = "show_playlist"; } - { key = "t"; command = "show_tag_editor"; } - { key = "v"; command = "show_visualizer"; } - { key = "."; command = "show_lyrics"; } - { key = "+"; command = "show_clock"; } - { key = "="; command = "volume_up"; } + { + key = "j"; + command = "scroll_down"; + } + { + key = "k"; + command = "scroll_up"; + } + { + key = "h"; + command = [ + "previous_column" + "jump_to_parent_directory" + ]; + } + { + key = "l"; + command = [ + "next_column" + "enter_directory" + "run_action" + "play_item" + ]; + } + { + key = "u"; + command = "page_up"; + } + { + key = "d"; + command = "page_down"; + } + { + key = "ctrl-u"; + command = "page_up"; + } + { + key = "ctrl-d"; + command = "page_down"; + } + { + key = "g"; + command = "move_home"; + } + { + key = "G"; + command = "move_end"; + } + { + key = "n"; + command = "next_found_item"; + } + { + key = "N"; + command = "previous_found_item"; + } + { + key = "J"; + command = "move_sort_order_down"; + } + { + key = "K"; + command = "move_sort_order_up"; + } + { + key = "f"; + command = [ + "show_browser" + "change_browse_mode" + ]; + } + { + key = "s"; + command = [ + "reset_search_engine" + "show_search_engine" + ]; + } + { + key = "m"; + command = "toggle_media_library_columns_mode"; + } + { + key = "x"; + command = "delete_playlist_items"; + } + { + key = "U"; + command = "update_database"; + } + { + key = "P"; + command = "show_playlist"; + } + { + key = "t"; + command = "show_tag_editor"; + } + { + key = "v"; + command = "show_visualizer"; + } + { + key = "."; + command = "show_lyrics"; + } + { + key = "+"; + command = "show_clock"; + } + { + key = "="; + command = "volume_up"; + } ]; }; } diff --git a/users/tdback/modules/neomutt/default.nix b/users/tdback/modules/neomutt/default.nix index bc066d9..413172a 100644 --- a/users/tdback/modules/neomutt/default.nix +++ b/users/tdback/modules/neomutt/default.nix @@ -17,17 +17,26 @@ binds = [ { - map = [ "index" "pager" ]; + map = [ + "index" + "pager" + ]; key = "\\Cp"; action = "sidebar-prev"; } { - map = [ "index" "pager" ]; + map = [ + "index" + "pager" + ]; key = "\\Cn"; action = "sidebar-next"; } { - map = [ "index" "pager" ]; + map = [ + "index" + "pager" + ]; key = "\\Cy"; action = "sidebar-open"; } @@ -35,27 +44,42 @@ macros = [ { - map = [ "index" "pager" ]; + map = [ + "index" + "pager" + ]; key = "gi"; action = "<change-folder>=Inbox<enter>"; } { - map = [ "index" "pager" ]; + map = [ + "index" + "pager" + ]; key = "gs"; action = "<change-folder>=Sent<enter>"; } { - map = [ "index" "pager" ]; + map = [ + "index" + "pager" + ]; key = "gd"; action = "<change-folder>=Drafts<enter>"; } { - map = [ "index" "pager" ]; + map = [ + "index" + "pager" + ]; key = "gt"; action = "<change-folder>=Trash<enter>"; } { - map = [ "index" "pager" ]; + map = [ + "index" + "pager" + ]; key = "ga"; action = "<change-folder>=Archive<enter>"; } diff --git a/users/tdback/modules/shell/default.nix b/users/tdback/modules/shell/default.nix index 1150cf3..3237cda 100644 --- a/users/tdback/modules/shell/default.nix +++ b/users/tdback/modules/shell/default.nix @@ -10,7 +10,10 @@ bash = { enable = true; historyFile = "~/.bash_history"; - historyControl = [ "ignoredups" "ignorespace" ]; + historyControl = [ + "ignoredups" + "ignorespace" + ]; shellOptions = [ "histappend" ]; initExtra = '' PS1=" |