nixos-configs/lib/default.nix
matt1432 bea7a1e274
All checks were successful
Discord / discord commits (push) Has been skipped
fix: unbreak some stuff and fix some naming
2025-01-21 15:05:25 -05:00

25 lines
539 B
Nix

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