From 00eb9d49b3a8d5fc1c89fe4515348f271b9db9a2 Mon Sep 17 00:00:00 2001 From: NullBite Date: Wed, 14 Feb 2024 10:41:15 +0100 Subject: [PATCH] common/nix: chanage nixpkgs flake to github ref This makes it so flake.lock files produced by `nix flake lock` don't reference my personal Nix store, but upstream Nixpkgs --- system/common/nix.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/system/common/nix.nix b/system/common/nix.nix index 784fcb9..c78c222 100644 --- a/system/common/nix.nix +++ b/system/common/nix.nix @@ -32,7 +32,15 @@ in id = "nixpkgs"; type = "indirect"; }; - flake = inputs.nixpkgs; + + # used instead of `flake` option so produced flake.lock files are + # portable + to = { + type = "github"; + owner = "NixOS"; + repo = "nixpkgs"; + rev = "${inputs.nixpkgs.rev}"; + }; }; };