dotfiles/nix/nixos/modules/pin-nixpkgs.nix
Richard Brežák 6cb9e4425f
Pin nixpkgs better
Signed-off-by: Richard Brežák <rbrezak@qualityunit.com>
2021-03-04 19:23:41 +01:00

19 lines
449 B
Nix

inputs:
{ nixpkgs, nixpkgs-unstable, nixpkgs-master, custom, hostname, rlib }:
{ config, ... }:
{
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;
}