Skip to content

mrVanDalo/clan-fact-generators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DRY facts generator lib for clan

How to import in your flake

clan = {
  specialArgs = {
    factsGenerator = clan-fact-generators.lib { inherit pkgs; };
  };
};

How to use

Now you can use the predefined generators

{ factsGenerator , ... }:
with factsGenerator;
{
  clan.core.facts.services.wireguard = factsGenerator.wireguard {};
  clan.core.facts.services.tinc = factsGenerator.tinc {};
  clan.core.facts.services.password = factsGenerator.password { name = "palo"; };
  clan.core.facts.services.ssh_host = factsGenerator.ssh { name = "host"; };
  clan.core.facts.services.ssh_borg = factsGenerator.ssh { name = "borg"; };
};

Every factsGenerator accepts a name (usually optional) parameter and service (optional) parameter to change the secret name.

About

generate clan facts like everybody else

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages