WIP: test: Set up service tests

This commit is contained in:
Tristan Daniël Maat 2025-11-13 05:20:09 +08:00
parent 82e9a58bb1
commit 30a5843fdf
Signed by: tlater
GPG key ID: 02E935006CF2E8E7
6 changed files with 121 additions and 11 deletions

View file

@ -0,0 +1,27 @@
/**
Module containing mock definitions for service test runners.
*/
{ lib, ... }:
{
imports = [
../.
../../configuration/services/backups.nix
];
# imports = [ flake-inputs.sops-nix.nixosModules.sops ];
sops.defaultSopsFile = ../../keys/staging.yaml;
environment.etc."staging.key" = {
mode = "0400";
source = ../../keys/hosts/staging.key;
};
services.openssh = {
enable = true;
hostKeys = lib.mkForce [
{
type = "rsa";
bits = 4096;
path = "/etc/staging.key";
}
];
};
}