Commit f4b8c99

HPCesia <me@hpcesia.com>
2026-06-11 14:14:41
Add NUR packages
1 parent 6c01e46
Changed files (4)
modules/core/nix/nixpkgs.nix
@@ -1,6 +1,22 @@
 {
-  den.aspects.core.nix.nixpkgs = {
-    nixos.nixpkgs.config.allowUnfree = true;
-    darwin.nixpkgs.config.allowUnfree = true;
-  };
+  inputs,
+  lib,
+  ...
+}: {
+  den.aspects.core.nix.nixpkgs = lib.genAttrs ["nixos" "darwin" "homeManager"] (name: {
+    nixpkgs = {
+      config.allowUnfree = true;
+      overlays = [
+        (final: prev: {
+          nur = import inputs.nur {
+            nurpkgs = prev;
+            pkgs = prev;
+            repoOverrides = {
+              hpcesia = import inputs.nur-hpcesia {pkgs = prev;};
+            };
+          };
+        })
+      ];
+    };
+  });
 }
modules/flake/gen-flake.nix
@@ -29,6 +29,16 @@
 
       # Other
       flake-compat.url = "https://git.lix.systems/lix-project/flake-compat/archive/main.tar.gz";
+
+      nur = {
+        url = "github:nix-community/NUR";
+        inputs.flake-parts.follows = "flake-parts";
+        inputs.nixpkgs.follows = "nixpkgs";
+      };
+      nur-hpcesia = {
+        url = "https://codeberg.org/HPCesia/nur-packages/archive/main.tar.gz";
+        inputs.nixpkgs.follows = "nixpkgs";
+      };
     };
   };
 }
flake.lock
@@ -230,6 +230,47 @@
         "type": "github"
       }
     },
+    "nur": {
+      "inputs": {
+        "flake-parts": [
+          "flake-parts"
+        ],
+        "nixpkgs": [
+          "nixpkgs"
+        ]
+      },
+      "locked": {
+        "lastModified": 1782645464,
+        "narHash": "sha256-DiRCi99A15tI/RBxTuU4h6oOv3E64PmIxSTbO5OVabE=",
+        "owner": "nix-community",
+        "repo": "NUR",
+        "rev": "8c8009558372901c08af8a2cc3ccc897d4a9f97f",
+        "type": "github"
+      },
+      "original": {
+        "owner": "nix-community",
+        "repo": "NUR",
+        "type": "github"
+      }
+    },
+    "nur-hpcesia": {
+      "inputs": {
+        "nixpkgs": [
+          "nixpkgs"
+        ]
+      },
+      "locked": {
+        "lastModified": 1782916490,
+        "narHash": "sha256-N/xmggLXoJqeDCLq3ual/KOiJtkuDhetctka0COt/kM=",
+        "rev": "28c05f3a6e3e0353305a481da0a2362b034f4ab7",
+        "type": "tarball",
+        "url": "https://codeberg.org/api/v1/repos/HPCesia/nur-packages/archive/28c05f3a6e3e0353305a481da0a2362b034f4ab7.tar.gz?rev=28c05f3a6e3e0353305a481da0a2362b034f4ab7"
+      },
+      "original": {
+        "type": "tarball",
+        "url": "https://codeberg.org/HPCesia/nur-packages/archive/main.tar.gz"
+      }
+    },
     "pre-commit-hooks": {
       "inputs": {
         "flake-compat": [
@@ -267,6 +308,8 @@
         "impermanence": "impermanence",
         "import-tree": "import-tree",
         "nixpkgs": "nixpkgs",
+        "nur": "nur",
+        "nur-hpcesia": "nur-hpcesia",
         "vaultix": "vaultix"
       }
     },
flake.nix
@@ -34,6 +34,17 @@
     };
     import-tree.url = "github:denful/import-tree";
     nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+    nur = {
+      url = "github:nix-community/NUR";
+      inputs = {
+        flake-parts.follows = "flake-parts";
+        nixpkgs.follows = "nixpkgs";
+      };
+    };
+    nur-hpcesia = {
+      url = "https://codeberg.org/HPCesia/nur-packages/archive/main.tar.gz";
+      inputs.nixpkgs.follows = "nixpkgs";
+    };
     vaultix = {
       url = "github:HPCesia/vaultix";
       inputs = {