mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 20:40:24 +01:00
docs: update comments
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user