automatically import secrets into nixos

This commit is contained in:
Jörg Thalheim
2023-08-23 11:58:12 +02:00
parent ed1d28f20b
commit 63bb9395fd
17 changed files with 196 additions and 7 deletions

View File

@@ -1,5 +1,21 @@
{
imports = [
./schema.nix
];
{ self, ... }: {
perSystem = { pkgs, ... }: {
checks =
let
nixosTestArgs = {
# reference to nixpkgs for the current system
inherit pkgs;
# this gives us a reference to our flake but also all flake inputs
inherit self;
};
nixosTests = {
# import our test
secrets = import ./secrets nixosTestArgs;
};
schemaTests = pkgs.callPackages ./schemas.nix {
inherit self;
};
in
nixosTests // schemaTests;
};
}