mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 22:57:55 +00:00
28 lines
798 B
Nix
28 lines
798 B
Nix
# 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> { } }:
|
|
|
|
let
|
|
inherit (pkgs) lib;
|
|
foodogsquaredLib = (import ../../lib { inherit pkgs; }).extend (final: prev:
|
|
let
|
|
callLib = file: import file { inherit pkgs lib; self = prev; };
|
|
in
|
|
{
|
|
nixos = callLib ../../lib/nixos.nix;
|
|
home-manager = callLib ../../lib/home-manager.nix;
|
|
nixvim = callLib ../../lib/nixvim.nix;
|
|
});
|
|
|
|
callLib = file: import file { inherit pkgs lib; self = foodogsquaredLib; };
|
|
in
|
|
{
|
|
trivial = callLib ./trivial.nix;
|
|
data = callLib ./data;
|
|
|
|
# Environment-specific subset.
|
|
home-manager = callLib ./home-manager.nix;
|
|
nixos = callLib ./nixos.nix;
|
|
nixvim = callLib ./nixvim.nix;
|
|
}
|