switch nixfiles-assets to GitHub

this also configures Nix to keep nixfiles-assets in the store so it
doesn't get redownloaded and I can save some GitHub LFS bandwidth
This commit is contained in:
NullBite 2024-03-18 20:24:00 -04:00
parent 76d89d8103
commit 84833ba0f8
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
3 changed files with 19 additions and 8 deletions

12
flake.lock generated
View File

@ -291,15 +291,15 @@
"locked": { "locked": {
"lastModified": 1710743555, "lastModified": 1710743555,
"narHash": "sha256-e8iXy4hCLYegNTeyB/GB8hj+gj1wPD+b+XOsEcdfEJY=", "narHash": "sha256-e8iXy4hCLYegNTeyB/GB8hj+gj1wPD+b+XOsEcdfEJY=",
"ref": "refs/heads/main", "owner": "Silveere",
"repo": "nixfiles-assets",
"rev": "4ee66c3036eda78fe0ddada0e289a4f672ac4f57", "rev": "4ee66c3036eda78fe0ddada0e289a4f672ac4f57",
"revCount": 1, "type": "github"
"type": "git",
"url": "https://gitea.protogen.io/nullbite/nixfiles-assets"
}, },
"original": { "original": {
"type": "git", "owner": "Silveere",
"url": "https://gitea.protogen.io/nullbite/nixfiles-assets" "repo": "nixfiles-assets",
"type": "github"
} }
}, },
"nixpkgs": { "nixpkgs": {

View File

@ -49,8 +49,9 @@
nixfiles-assets = { nixfiles-assets = {
# using self-hosted gitea mirror because of GitHub LFS bandwidth limit (even though i'd probably never hit it) # using self-hosted gitea mirror because of GitHub LFS bandwidth limit (even though i'd probably never hit it)
type = "git"; type = "github";
url = "https://gitea.protogen.io/nullbite/nixfiles-assets"; owner = "Silveere";
repo = "nixfiles-assets";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.systems.follows = "systems"; inputs.systems.follows = "systems";
}; };

View File

@ -26,6 +26,16 @@ in
# this makes modern nix tools use the system's version of nixpkgs # this makes modern nix tools use the system's version of nixpkgs
nix.registry = { nix.registry = {
# this keeps nixfiles-assets in the store so i can save some GitHub LFS
# bandwidth
nixfiles-assets = {
exact = true;
from = {
id = "nixfiles-assets";
type = "indirect";
};
flake = inputs.nixfiles-assets;
};
nixpkgs = { nixpkgs = {
exact = true; exact = true;
from = { from = {