mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
add flake registry pins
This commit is contained in:
parent
598579db37
commit
47a8568700
1 changed files with 15 additions and 1 deletions
16
flake.nix
16
flake.nix
|
@ -4,11 +4,25 @@
|
|||
|
||||
outputs = { self, nixpkgs, impermanence, ... }:
|
||||
let
|
||||
|
||||
mypkgs = import ./pkgs;
|
||||
|
||||
pins = _: {
|
||||
nix.registry.nixpkgs.flake = nixpkgs;
|
||||
nix.registry.bck.to = {
|
||||
owner = "buckley310";
|
||||
repo = "nixos-config";
|
||||
type = "github";
|
||||
};
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
nixosModules =
|
||||
{ inherit (impermanence.nixosModules) impermanence; } //
|
||||
{
|
||||
inherit pins;
|
||||
inherit (impermanence.nixosModules) impermanence;
|
||||
} //
|
||||
nixpkgs.lib.mapAttrs'
|
||||
(name: type: {
|
||||
name = nixpkgs.lib.removeSuffix ".nix" name;
|
||||
|
|
Loading…
Reference in a new issue