docs: improve lib documentation (WIP)

This commit is contained in:
Leon Schwarzäugl 2025-02-26 01:01:12 +01:00
parent b67abcce27
commit e6038688ae
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
4 changed files with 46 additions and 52 deletions

View file

@ -90,12 +90,6 @@
inherit (self) outputs;
lib = (nixpkgs.lib // home-manager.lib).extend (_: _: { swarselsystems = import ./lib { inherit self lib inputs outputs systems; }; });
# Home-Manager modules wanted on non-NixOS systems
# Home-Manager modules wanted on both NixOS and non-NixOS systems
in
{
@ -157,6 +151,7 @@
import ./checks { inherit self inputs system pkgs; }
);
nixosConfigurations =
lib.swarselsystems.mkFullHostConfigs (lib.swarselsystems.readHosts "nixos") "nixos";
homeConfigurations =
@ -183,6 +178,7 @@
lib.swarselsystems.mkHalfHostConfigs (lib.swarselsystems.readHosts "android") "android" lib.swarselsystems.pkgsFor.aarch64-linux;
topology =
lib.swarselsystems.forEachSystem (pkgs: import inputs.nix-topology {