automatically import secrets into nixos
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user