From c57f537d92ec3c8ecf46413dfc44b783a2fb1afd Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Wed, 21 Feb 2024 20:05:49 +0100 Subject: [PATCH] Update general settings, add newsboat. --- home-manager/home.nix | 1 + home-manager/modules/confs/newsboat | 53 +++++++++++++++++++++++++++++ home-manager/modules/newsboat.nix | 12 +++++++ nixos/configuration.nix | 3 ++ 4 files changed, 69 insertions(+) create mode 100644 home-manager/modules/confs/newsboat create mode 100644 home-manager/modules/newsboat.nix diff --git a/home-manager/home.nix b/home-manager/home.nix index df314d0..1ad2b77 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -24,6 +24,7 @@ # ./modules/theming.nix Not needed when using plasma ./modules/plasma.nix ./modules/alacritty.nix + ./modules/newsboat.nix ]; diff --git a/home-manager/modules/confs/newsboat b/home-manager/modules/confs/newsboat new file mode 100644 index 0000000..950d085 --- /dev/null +++ b/home-manager/modules/confs/newsboat @@ -0,0 +1,53 @@ +# unbind keys +unbind-key ENTER +unbind-key j +unbind-key k +unbind-key J +unbind-key K + +# bind keys - vim style +bind-key j down +bind-key k up +bind-key l open +bind-key h quit + + +bind-key g home +bind-key G end +bind-key a toggle-article-read +auto-reload yes +reload-threads 50 +confirm-mark-feed-read yes +prepopulate-query-feeds yes + +browser "dmenu-link-handler $U" + +urls-source "miniflux" +miniflux-url "https://feed.cronyakatsuki.xyz/" +miniflux-login "crony" +miniflux-passwordeval "news-pass" +miniflux-min-items 0 + +download-path "~/downs" +max-downloads 2 +player "mpv" + +# Catppuccin colors +color listnormal color15 default +color listnormal_unread color2 default +color listfocus_unread color2 color0 +color listfocus default color0 +color background default default +color article default default +color end-of-text-marker color8 default +color info color4 color8 +color hint-separator default color8 +color hint-description default color8 +color title color14 color8 + +highlight article "^(Feed|Title|Author|Link|Date): .+" color4 default bold +highlight article "^(Feed|Title|Author|Link|Date):" color14 default bold + +highlight article "\\((link|image|video)\\)" color8 default +highlight article "https?://[^ ]+" color4 default +highlight article "\[[0-9]+\]" color6 default bold diff --git a/home-manager/modules/newsboat.nix b/home-manager/modules/newsboat.nix new file mode 100644 index 0000000..f5a1428 --- /dev/null +++ b/home-manager/modules/newsboat.nix @@ -0,0 +1,12 @@ +{ inputs, pkgs, ... }: +{ + # Install alacritty + home.packages = [ + pkgs.newsboat + ]; + + # Setup my config file + home.file = { + ".config/newsboat/config".source = ./confs/newsboat; + }; +} diff --git a/nixos/configuration.nix b/nixos/configuration.nix index fcc0f3c..5402007 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -193,6 +193,9 @@ shell = pkgs.zsh; }; + # Add ~/.local/bin to path + environment.localBinInPath = true; + # Allow appimages to run manually boot.binfmt.registrations.appimage = { wrapInterpreterInShell = false;