From 83d952f61c9eb63eb96419452e70bd7ec1ac84af Mon Sep 17 00:00:00 2001 From: jxnshi Date: Sun, 26 Jan 2025 15:59:15 +0100 Subject: [PATCH] Add RSS feeds --- .gitignore | 1 - configuration.nix | 2 + flake.lock | 48 +++++++++++++++++++ flake.nix | 18 +++++-- home.nix | 118 ++++++++++++++++++++++++++++++++++++++++++---- 5 files changed, 172 insertions(+), 15 deletions(-) delete mode 100644 .gitignore create mode 100644 flake.lock diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 301d47e..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -flake.lock diff --git a/configuration.nix b/configuration.nix index 5905af0..88aa721 100644 --- a/configuration.nix +++ b/configuration.nix @@ -50,6 +50,8 @@ environment.variables.BROWSER = "qutebrowser"; environment.variables.EDITOR = "hx"; environment.variables.MUSIC_PLAYER = "st ncmpcpp"; + environment.variables.RSS_READER = "st newsboat"; + environment.variables.SCREENSHOT = "flameshot gui"; environment.variables.TERM = "st"; # Allow unfree packages. diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..4ba6631 --- /dev/null +++ b/flake.lock @@ -0,0 +1,48 @@ +{ + "nodes": { + "home-manager": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1737762889, + "narHash": "sha256-5HGG09bh/Yx0JA8wtBMAzt0HMCL1bYZ93x4IqzVExio=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "daf04c5950b676f47a794300657f1d3d14c1a120", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "home-manager", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1737632463, + "narHash": "sha256-38J9QfeGSej341ouwzqf77WIHAScihAKCt8PQJ+NH28=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "0aa475546ed21629c4f5bbf90e38c846a99ec9e9", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "home-manager": "home-manager", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix index c215442..7b99d72 100644 --- a/flake.nix +++ b/flake.nix @@ -2,16 +2,24 @@ description = "My nix config"; inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11"; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - home-manager.url = "github:nix-community/home-manager/release-24.11"; + home-manager.url = "github:nix-community/home-manager"; home-manager.inputs.nixpkgs.follows = "nixpkgs"; }; - outputs = { self, nixpkgs, ... }@inputs: { + outputs = { self, nixpkgs, ... }@inputs: + let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + in + { nixosConfigurations.t420 = nixpkgs.lib.nixosSystem { - specialArgs = { inherit inputs "x86_64-linux"; }; - modules = [ ./configuration.nix ]; + specialArgs = { inherit inputs system; }; + modules = [ + ./configuration.nix + inputs.home-manager.nixosModules.default + ]; }; }; } diff --git a/home.nix b/home.nix index 2acb65d..baacabd 100644 --- a/home.nix +++ b/home.nix @@ -9,21 +9,24 @@ home.packages = with pkgs; [ dwm # Window manager. fish # Shell. + flameshot # Screenshot. gimp # Image editor. helix # Text editor. krita # Drawing software. monero-gui # Monero wallet. ncmpcpp # Music player. + newsboat # RSS reader. + qbittorrent # Torrent client. qutebrowser # Web browser. st # Terminal emulator. # Misc. alsa-utils + btop dmenu feh git home-manager - htop mpd pfetch-rs picom @@ -42,7 +45,7 @@ dwm = prev.dwm.overrideAttrs (old: { src = pkgs.fetchgit { url = "git://jxnshi.xyz/dwm-config.git"; - hash = "sha256-BJ77olfRDYvlq1GrJcDXPd7ZNiQlxZ/rxzGn3ftH42k="; + hash = "sha256-TtxXm9gYTUdEDfoee0jvu9No4u8xXatTin4oW+gM+KE="; }; }); st = prev.st.overrideAttrs (old: { @@ -109,13 +112,6 @@ type "pipewire" name "Pipewire Sound Server" } - - audio_output { - type "fifo" - name "Visualizer feed" - path "/tmp/mpd.fifo" - format "44100:16:2" - } ''; # Ncmpcpp. @@ -138,6 +134,110 @@ programs.ncmpcpp.settings.browser_display_mode = "columns"; programs.ncmpcpp.settings.allow_for_physical_item_deletion = "yes"; + # Newsboat. + programs.newsboat.enable = true; + + programs.newsboat.urls = [ + # Kyun. + { + title = "Kyun"; + url = "https://blog.kyun.host/rss"; + } + # YouTube. + { + title = "YouTube - DeSinc"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UC4nJnJ-HO5vVbGlJ14rf5yg"; + } + { + title = "YouTube - Eric Murphy"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UC5KDiSAFxrDWhmysBcNqtMA"; + } + { + title = "YouTube - Feldup"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UCQVaKQcp4OxSg1eC6SF3NTw"; + } + { + title = "YouTube - Garbaj"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UCPUe9uOcp1UMpVi6Vll60Jw"; + } + { + title = "YouTube - Hakita"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UCD1lODYlzMJ3YlZ30x2CwUg"; + } + { + title = "YouTube - Htwo"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UCvCkfdQ3zMmgJaGhH1A15YQ"; + } + { + title = "YouTube - Hugo Decrypte"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UCAcAnMF0OrCtUep3Y4M-ZPw"; + } + { + title = "YouTube - Imanex"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UCnnv8m73O0sHt2voHurFguA"; + } + { + title = "YouTube - James VS Cinema"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UC481dIe4FkXPfTPiz-giDQg"; + } + { + title = "YouTube - JPEGMAFIA"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UCnAbB39RDMkmkMLigykYvQw"; + } + { + title = "YouTube - Linguisticae"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UCofQxJWd4qkqc7ZgaLkZfcw"; + } + { + title = "YouTube - Luke Smith"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA"; + } + { + title = "YouTube - melanie"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UCWQEl_Y75VP4bO59vu6FvYw"; + } + { + title = "YouTube - Mental Outlaw"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UC7YOGHUfC1Tb6E4pudI9STA"; + } + { + title = "YouTube - Second Thought"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UCJm2TgUqtK1_NLBrjNQ1P-w"; + } + { + title = "YouTube - Shadok"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UCob2SKILOgz_nfAuO74IUZw"; + } + { + title = "YouTube - Techlore"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UCs6KfncB4OV6Vug4o_bzijg"; + } + { + title = "YouTube - The Vaush Pit"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UCdUD6racxisHiSX9iWFcuug"; + } + { + title = "YouTube - TheWhat Show"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UCKaLvqnOyhNjOa5lvfZBZRg"; + } + { + title = "YouTube - turning the tables"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UCgmDCcn9oo7m9XCIfi8eavw"; + } + { + title = "YouTube - Tyler McVicker"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UCL5RKbiAPqSC_mUIjCpx3xg"; + } + { + title = "YouTube - Vaush"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UC1E-JS8L0j1Ei70D9VEFrPQ"; + } + { + title = "YouTube - Veritasium"; + url = "https://www.youtube.com/feeds/videos.xml?channel_id=UCHnyfMqiRRG1u-2MsSQLbXA"; + } + ]; + # Picom. services.picom.enable = true; -- 2.49.0