The NIX_PATH assembly now walks over all keys in the given channel repositories and assembles a NIX_PATH entry from it. Previously it made assumptions about a set of hardcoded keys being available, which wasn't ideal as it didn't allow device-entries.
30 lines
1,020 B
Nix
30 lines
1,020 B
Nix
let
|
|
nixpkgs = {
|
|
url = "https://github.com/NixOS/nixpkgs/";
|
|
ref = "nixos-20.09";
|
|
rev = "<% git ls-remote https://github.com/nixos/nixpkgs nixos-20.09 | awk '{ print $1 }' | tr -d '\n' -%>";
|
|
};
|
|
in
|
|
|
|
{
|
|
inherit nixpkgs;
|
|
nixos = nixpkgs // {
|
|
suffix = "/nixos";
|
|
};
|
|
"channels-nixos-stable" = nixpkgs;
|
|
"channels-nixos-unstable" = {
|
|
url = "https://github.com/NixOS/nixpkgs/";
|
|
ref = "nixos-unstable";
|
|
rev = "<% git ls-remote https://github.com/nixos/nixpkgs nixos-unstable | awk '{ print $1 }' | tr -d '\n' -%>";
|
|
};
|
|
"nixpkgs-master" = {
|
|
url = "https://github.com/NixOS/nixpkgs/";
|
|
ref = "master";
|
|
rev = "<% git ls-remote https://github.com/NixOS/nixpkgs.git master | head -n1 | awk '{ print $1 }' | tr -d '\n' -%>";
|
|
};
|
|
"home-manager-module" = {
|
|
url = "https://github.com/nix-community/home-manager";
|
|
ref = "release-20.09";
|
|
rev = "<% git ls-remote https://github.com/nix-community/home-manager.git release-20.09 | awk '{ print $1 }' | tr -d '\n' -%>";
|
|
};
|
|
}
|