nixos-configs/lib/default.nix
matt1432 318ccef645
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: split up lib in multiple folders
2024-11-20 17:07:10 -05:00

23 lines
381 B
Nix

{
perSystem,
inputs,
}: let
flake = import ./flake inputs;
strings = import ./strings inputs.nixpkgs.lib;
lib = flake // strings;
in
# Expose main attrs
lib
# Expose all funcs
// strings
// flake
# Expose funcs that require pkgs
// perSystem (
pkgs:
(import ./pkgs {
inherit pkgs;
inherit (inputs) self;
})
// lib
)