stockholm/lass/1systems/blue/source.nix
2021-10-23 22:22:38 +02:00

18 lines
459 B
Nix

{ lib, pkgs, test, ... }:
if test then {} else {
nixpkgs = lib.mkIf (! test) (lib.mkForce {
file = {
path = toString (pkgs.fetchFromGitHub {
owner = "nixos";
repo = "nixpkgs";
rev = (lib.importJSON ../../../krebs/nixpkgs.json).rev;
sha256 = (lib.importJSON ../../../krebs/nixpkgs.json).sha256;
});
useChecksum = true;
};
});
nixpkgs-unstable = lib.mkForce {
file.path = "/var/empty";
};
}