nixos-configs/lib/default.nix
matt1432 6ca0d7248b
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: rename some flake attr directories
2024-12-16 15:51:41 -05:00

24 lines
487 B
Nix

{
perSystem,
inputs,
}: let
attrs = import ./attrs {};
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
)