add flake registry pins

This commit is contained in:
Sean Buckley 2021-11-18 15:45:24 -05:00
parent 598579db37
commit 47a8568700

View file

@ -4,11 +4,25 @@
outputs = { self, nixpkgs, impermanence, ... }: outputs = { self, nixpkgs, impermanence, ... }:
let let
mypkgs = import ./pkgs; mypkgs = import ./pkgs;
pins = _: {
nix.registry.nixpkgs.flake = nixpkgs;
nix.registry.bck.to = {
owner = "buckley310";
repo = "nixos-config";
type = "github";
};
};
in in
{ {
nixosModules = nixosModules =
{ inherit (impermanence.nixosModules) impermanence; } // {
inherit pins;
inherit (impermanence.nixosModules) impermanence;
} //
nixpkgs.lib.mapAttrs' nixpkgs.lib.mapAttrs'
(name: type: { (name: type: {
name = nixpkgs.lib.removeSuffix ".nix" name; name = nixpkgs.lib.removeSuffix ".nix" name;