docs: update comments

This commit is contained in:
Ryan Yin
2024-03-15 14:34:42 +08:00
parent d5ea3f0edf
commit 9d4b8ef027

View File

@@ -50,17 +50,17 @@
# Helper function to generate a set of attributes for each system # Helper function to generate a set of attributes for each system
forAllSystems = func: (nixpkgs.lib.genAttrs allSystemNames func); forAllSystems = func: (nixpkgs.lib.genAttrs allSystemNames func);
in { in {
# add attribute sets into outputs, for debugging # Add attribute sets into outputs, for debugging
debugAttrs = {inherit nixosSystems darwinSystems allSystems allSystemNames;}; debugAttrs = {inherit nixosSystems darwinSystems allSystems allSystemNames;};
# Unit Tests for all NixOS systems. # Eval Tests for all NixOS systems.
evalTests = lib.lists.all (it: it.evalTests == {}) allSystemValues; evalTests = lib.lists.all (it: it.evalTests == {}) allSystemValues;
# NixOS Hosts # NixOS Hosts
nixosConfigurations = nixosConfigurations =
lib.attrsets.mergeAttrsList (map (it: it.nixosConfigurations or {}) nixosSystemValues); lib.attrsets.mergeAttrsList (map (it: it.nixosConfigurations or {}) nixosSystemValues);
# colmena - remote deployment via SSH # Colmena - remote deployment via SSH
colmena = colmena =
{ {
meta = meta =
@@ -90,7 +90,6 @@ in {
system: allSystems.${system}.packages or {} system: allSystems.${system}.packages or {}
); );
# Unit Tests, Intergraded Tests, and Pre-commit checks
checks = forAllSystems ( checks = forAllSystems (
system: { system: {
pre-commit-check = pre-commit-hooks.lib.${system}.run { pre-commit-check = pre-commit-hooks.lib.${system}.run {