flake: specify a url for nixpkgs

nix-direnv keeps picking up nixpkgs from my local nix registry, which is
super annoying because I have to manually ignore the change every time I
use git.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2024-06-26 11:27:02 +01:00
parent 6c0f12db6e
commit 5d3640b79c
No known key found for this signature in database
GPG Key ID: D3A4405BE6CC17F4
2 changed files with 4 additions and 4 deletions

View File

@ -41,16 +41,15 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1716451822,
"narHash": "sha256-0lT5RVelqN+dgXWWneXvV5ufSksW0r0TDQi8O6U2+o8=",
"lastModified": 1719397110,
"narHash": "sha256-rYGcPSy8hBx/0OJvHrtR50KGN9AR7GN/zXG4xOi5Dnc=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "3305b2b25e4ae4baee872346eae133cf6f611783",
"rev": "c414599dfae92540ccc0c7d5d49f6cf6dc5b7fc8",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}

View File

@ -1,6 +1,7 @@
{
inputs = {
flake-utils.url = github:numtide/flake-utils;
nixpkgs.url = github:nixos/nixpkgs;
git-ignore-nix = {
url = github:hercules-ci/gitignore.nix/master;
inputs.nixpkgs.follows = "nixpkgs";