From 5d3640b79c51f336105953578f44ff566d15603e Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Wed, 26 Jun 2024 11:27:02 +0100 Subject: [PATCH] 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 --- flake.lock | 7 +++---- flake.nix | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index eee97663..9e50f9bf 100644 --- a/flake.lock +++ b/flake.lock @@ -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" } diff --git a/flake.nix b/flake.nix index 31880a45..f153d8ba 100644 --- a/flake.nix +++ b/flake.nix @@ -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";