mirror of
https://github.com/nix-community/home-manager
synced 2024-11-14 07:09:45 +01:00
5f433eb164
Before, loading a module would be guarded by an optional platform condition. This made it possible to avoid loading and evaluating a module if it did not support the host platform. Unfortunately, this made it impossible to share a single configuration between GNU/Linux and Darwin hosts, which some wish to do. This removes the conditional load and instead inserts host platform assertions in the modules that are platform specific. Fixes #1906
28 lines
734 B
Nix
28 lines
734 B
Nix
{ lib }:
|
|
|
|
rec {
|
|
dag =
|
|
let
|
|
d = import ./dag.nix { inherit lib; };
|
|
in
|
|
{
|
|
empty = d.emptyDag;
|
|
isDag = d.isDag;
|
|
topoSort = d.dagTopoSort;
|
|
map = d.dagMap;
|
|
entryAnywhere = d.dagEntryAnywhere;
|
|
entryBetween = d.dagEntryBetween;
|
|
entryAfter = d.dagEntryAfter;
|
|
entryBefore = d.dagEntryBefore;
|
|
};
|
|
|
|
assertions = import ./assertions.nix { inherit lib; };
|
|
|
|
gvariant = import ./gvariant.nix { inherit lib; };
|
|
maintainers = import ./maintainers.nix;
|
|
strings = import ./strings.nix { inherit lib; };
|
|
types = import ./types.nix { inherit dag gvariant lib; };
|
|
|
|
shell = import ./shell.nix { inherit lib; };
|
|
zsh = import ./zsh.nix { inherit lib; };
|
|
}
|