nix: keep flake inputs after garbage collection
This commit is contained in:
parent
e7d0121d46
commit
6c534c590f
|
@ -1,4 +1,11 @@
|
|||
{ config, pkgs, inputs, ... }: {
|
||||
{ lib, config, pkgs, inputs, ... }:
|
||||
let
|
||||
collectFlakeInputs = input:
|
||||
[ input ] ++ lib.concatMap collectFlakeInputs (builtins.attrValues (input.inputs or { }));
|
||||
in
|
||||
{
|
||||
system.extraDependencies = collectFlakeInputs inputs.self;
|
||||
|
||||
nix.registry.nixpkgs.flake = inputs.nixpkgs;
|
||||
nix = {
|
||||
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
||||
|
|
Loading…
Reference in a new issue