chore(test/makeTestClan): document all options, remove magic specialArgs

This commit is contained in:
Johannes Kirschbauer
2025-04-16 10:33:32 +02:00
parent 7bdb2cabf9
commit 2796038254
3 changed files with 65 additions and 22 deletions

16
lib/test/sops.nix Normal file
View File

@@ -0,0 +1,16 @@
# nixosModule
{ config, lib, ... }:
{
# configures a static age-key to skip the age-key generation
sops.age.keyFile = "/run/age-key.txt";
system.activationScripts =
{
setupSecrets.deps = [ "age-key" ];
age-key.text = ''
echo AGE-SECRET-KEY-1PL0M9CWRCG3PZ9DXRTTLMCVD57U6JDFE8K7DNVQ35F4JENZ6G3MQ0RQLRV > /run/age-key.txt
'';
}
// lib.optionalAttrs (lib.filterAttrs (_: v: v.neededForUsers) config.sops.secrets != { }) {
setupSecretsForUsers.deps = [ "age-key" ];
};
}