From a31923bf1451fbbd74b3ed13c4cf3310ef4a23dd Mon Sep 17 00:00:00 2001 From: Ratson Date: Fri, 28 Jun 2024 21:59:41 +0800 Subject: [PATCH] Use direct flake url for nixpkgs --- API_GUIDE.md | 6 +++--- README.md | 2 +- flake.lock | 5 +++-- flake.nix | 2 +- templates/basic/flake.nix | 2 +- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/API_GUIDE.md b/API_GUIDE.md index 087dab0..24de77d 100644 --- a/API_GUIDE.md +++ b/API_GUIDE.md @@ -106,7 +106,7 @@ To use a different nixpkgs from the built-in default (passing all inputs): { inputs = { flakelight.url = "github:nix-community/flakelight"; - nixpkgs.url = "nixpkgs/nixpkgs-unstable"; + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; }; outputs = { flakelight, ... }@inputs: flakelight ./. { @@ -120,7 +120,7 @@ Or to just pass just the nixpkgs input: ```nix { inputs = { - nixpkgs.url = "nixpkgs/nixpkgs-unstable"; + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; flakelight.url = "github:nix-community/flakelight"; }; outputs = { flakelight, nixpkgs, ... }: @@ -803,7 +803,7 @@ For example: { inputs = { flakelight.url = "github:nix-community/flakelight"; - nixpkgs.url = "nixpkgs/nixpkgs-unstable"; + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; }; outputs = { flakelight, nixpkgs, ... }: flakelight ./. { diff --git a/README.md b/README.md index 9f11319..08bebec 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ To use a different nixpkgs, you can instead use: ```nix { inputs = { - nixpkgs.url = "nixpkgs/nixpkgs-unstable"; + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; flakelight.url = "github:nix-community/flakelight"; }; outputs = { flakelight, ... }@inputs: diff --git a/flake.lock b/flake.lock index b4fe998..8bbf80d 100644 --- a/flake.lock +++ b/flake.lock @@ -10,9 +10,10 @@ "type": "github" }, "original": { - "id": "nixpkgs", + "owner": "NixOS", "ref": "nixos-unstable", - "type": "indirect" + "repo": "nixpkgs", + "type": "github" } }, "root": { diff --git a/flake.nix b/flake.nix index 600ea9c..5010a4d 100644 --- a/flake.nix +++ b/flake.nix @@ -5,7 +5,7 @@ { description = "A modular Nix flake framework for simplifying flake definitions"; - inputs.nixpkgs.url = "nixpkgs/nixos-unstable"; + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; outputs = inputs: let lib = import ./. inputs; in lib.mkFlake ./. { diff --git a/templates/basic/flake.nix b/templates/basic/flake.nix index 5d1a0c7..3b39a7b 100644 --- a/templates/basic/flake.nix +++ b/templates/basic/flake.nix @@ -1,6 +1,6 @@ { inputs = { - nixpkgs.url = "nixpkgs/nixos-unstable"; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; flakelight.url = "github:nix-community/flakelight"; }; outputs = { flakelight, ... }@inputs: