surely this works

This commit is contained in:
caem 2025-01-24 16:14:28 +01:00
parent 6c79d2aadb
commit 1b32a5a22f
Signed by: caem
GPG key ID: 69A830D03203405F
3 changed files with 14 additions and 2 deletions

View file

@ -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:

View file

@ -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"));

View file

@ -0,0 +1,6 @@
{ inputs, pkgs, lib, ... }: final: prev: {
mkNixPak = inputs.nixpak.lib.nixpak {
inherit (pkgs) lib;
inherit pkgs;
};
}