dotfiles/nix/nixos/modules/pin-nixpkgs.nix

19 lines
449 B
Nix
Raw Normal View History

2020-12-29 17:35:11 +01:00
inputs:
{ nixpkgs, nixpkgs-unstable, nixpkgs-master, custom, hostname, rlib }:
{ config, ... }:
{
2021-01-18 20:24:07 +01:00
nix.registry = {
"nixpkgs".flake = inputs.nixpkgs;
"nixpkgs-unstable".flake = inputs.nixpkgs-unstable;
"nixpkgs-master".flake = inputs.nixpkgs-master;
};
nix.nixPath = [
"nixpkgs=${inputs.nixpkgs}"
"nixpkgs-unstable=${inputs.nixpkgs-unstable}"
"nixpkgs-master=${inputs.nixpkgs-master}"
];
nixpkgs.pkgs = nixpkgs;
}