surely this works
This commit is contained in:
parent
6c79d2aadb
commit
1b32a5a22f
3 changed files with 14 additions and 2 deletions
|
@ -25,6 +25,11 @@
|
||||||
url = "github:Mic92/sops-nix";
|
url = "github:Mic92/sops-nix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixpak = {
|
||||||
|
url = "github:nixpak/nixpak";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
|
@ -36,6 +41,7 @@
|
||||||
disko,
|
disko,
|
||||||
sops-nix,
|
sops-nix,
|
||||||
secrets,
|
secrets,
|
||||||
|
nixpak,
|
||||||
...
|
...
|
||||||
} @ inputs: let
|
} @ inputs: let
|
||||||
lib = nixpkgs.lib.extend (final: prev:
|
lib = nixpkgs.lib.extend (final: prev:
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{ lib, inputs, cfgPath, ... }:
|
{ pkgs, lib, inputs, cfgPath, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
importOverlays = builtins.map
|
importOverlays = builtins.map
|
||||||
(overlay: import overlay { inherit lib inputs; })
|
(overlay: import overlay { inherit lib inputs pkgs; })
|
||||||
(builtins.filter
|
(builtins.filter
|
||||||
(file: builtins.match ".*\.nix" (builtins.toString file) != null)
|
(file: builtins.match ".*\.nix" (builtins.toString file) != null)
|
||||||
(lib.filesystem.listFilesRecursive "${cfgPath}/overlays"));
|
(lib.filesystem.listFilesRecursive "${cfgPath}/overlays"));
|
||||||
|
|
6
overlays/nixpak/default.nix
Normal file
6
overlays/nixpak/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{ inputs, pkgs, lib, ... }: final: prev: {
|
||||||
|
mkNixPak = inputs.nixpak.lib.nixpak {
|
||||||
|
inherit (pkgs) lib;
|
||||||
|
inherit pkgs;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue