nixos-config/tests/lib/default.nix

30 lines
950 B
Nix
Raw Normal View History

2024-03-08 08:39:13 +00:00
# For the environment-specific subset, we'll be simulating the configurations
# as a simple attribute set since that's what they are anyways.
{ pkgs ? import <nixpkgs> { }, utils ? import ../utils.nix { inherit pkgs; } }:
let
inherit (pkgs) lib;
foodogsquaredLib = (import ../../lib { inherit pkgs; }).extend (final: prev:
let
callLib = file: import file { inherit pkgs lib; self = prev; };
in
{
2024-07-14 03:15:27 +00:00
nixos = callLib ../../lib/env-specific/nixos.nix;
home-manager = callLib ../../lib/env-specific/home-manager.nix;
nixvim = callLib ../../lib/env-specific/nixvim.nix;
});
callLib = file: import file { inherit pkgs lib; self = foodogsquaredLib; };
in
{
builders = callLib ./builders.nix;
trivial = callLib ./trivial.nix;
2024-06-09 15:03:26 +00:00
data = callLib ./data;
math = callLib ./math.nix;
2024-03-08 08:39:13 +00:00
# Environment-specific subset.
home-manager = callLib ./home-manager.nix;
nixos = callLib ./nixos.nix;
nixvim = callLib ./nixvim.nix;
}