]> jxnshi.xyz Git - nix-config.git/commitdiff
Add RSS feeds
authorjxnshi <jxnshi@proton.me>
Sun, 26 Jan 2025 14:59:15 +0000 (15:59 +0100)
committerjxnshi <jxnshi@proton.me>
Sun, 26 Jan 2025 14:59:15 +0000 (15:59 +0100)
.gitignore [deleted file]
configuration.nix
flake.lock [new file with mode: 0644]
flake.nix
home.nix

diff --git a/.gitignore b/.gitignore
deleted file mode 100644 (file)
index 301d47e..0000000
+++ /dev/null
@@ -1 +0,0 @@
-flake.lock
index 5905af059b0ba65d957d232ce19e704259a46fa8..88aa72136b31493c79cec368a14808d7586cb9d6 100644 (file)
@@ -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 (file)
index 0000000..4ba6631
--- /dev/null
@@ -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
+}
index c215442e98d6cf1f7013579585abfe5e58517e4a..7b99d72e5d82e7c8a81481209b16df1638e40e97 100644 (file)
--- 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
+            ];
         };
     };
 }
index 2acb65d91f6324137730dbb980d079fae820fa87..baacabdd5925336099a4c6c895b8b0e4cd67c383 100644 (file)
--- 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: {
             type "pipewire"
             name "Pipewire Sound Server"
         }
-
-        audio_output {
-            type "fifo"
-            name "Visualizer feed"
-            path "/tmp/mpd.fifo"
-            format "44100:16:2"
-        }
     '';
 
     # Ncmpcpp.
     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;