This commit is contained in:
2026-01-20 19:48:20 -05:00
parent da6b4d1915
commit 8ed67464d0
8 changed files with 65 additions and 15 deletions

View File

@@ -9,7 +9,12 @@ pkgs.testers.runNixOSTest {
nodes = {
server =
{ config, pkgs, lib, ... }:
{
config,
pkgs,
lib,
...
}:
{
imports = [
../modules/security.nix

View File

@@ -21,7 +21,10 @@ let
testLib = lib.extend (
final: prev: {
serviceMountWithZpool = serviceName: zpool: dirs: { ... }: { };
serviceMountWithZpool =
serviceName: zpool: dirs:
{ ... }:
{ };
}
);
@@ -42,7 +45,12 @@ pkgs.testers.runNixOSTest {
nodes = {
server =
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
{
imports = [
../modules/security.nix

View File

@@ -20,7 +20,10 @@ let
testLib = lib.extend (
final: prev: {
serviceMountWithZpool = serviceName: zpool: dirs: { ... }: { };
serviceMountWithZpool =
serviceName: zpool: dirs:
{ ... }:
{ };
}
);
@@ -41,7 +44,12 @@ pkgs.testers.runNixOSTest {
nodes = {
server =
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
{
imports = [
../modules/security.nix
@@ -79,7 +87,7 @@ pkgs.testers.runNixOSTest {
# Immich needs more resources
virtualisation.diskSize = 4 * 1024;
virtualisation.memorySize = 4 * 1024; # 4GB RAM for Immich
virtualisation.memorySize = 4 * 1024; # 4GB RAM for Immich
};
client = {

View File

@@ -22,7 +22,10 @@ let
testLib = lib.extend (
final: prev: {
serviceMountWithZpool = serviceName: zpool: dirs: { ... }: { };
serviceMountWithZpool =
serviceName: zpool: dirs:
{ ... }:
{ };
optimizePackage = pkg: pkg; # No-op for testing
}
);
@@ -44,7 +47,12 @@ pkgs.testers.runNixOSTest {
nodes = {
server =
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
{
imports = [
../modules/security.nix

View File

@@ -13,7 +13,12 @@ let
securityModule = import ../modules/security.nix;
sshModule =
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
{
imports = [
(import ../services/ssh.nix {
@@ -28,7 +33,12 @@ pkgs.testers.runNixOSTest {
nodes = {
server =
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
{
imports = [
securityModule
@@ -47,7 +57,10 @@ pkgs.testers.runNixOSTest {
};
client = {
environment.systemPackages = with pkgs; [ sshpass openssh ];
environment.systemPackages = with pkgs; [
sshpass
openssh
];
};
};

View File

@@ -20,7 +20,10 @@ let
testLib = lib.extend (
final: prev: {
serviceMountWithZpool = serviceName: zpool: dirs: { ... }: { };
serviceMountWithZpool =
serviceName: zpool: dirs:
{ ... }:
{ };
}
);
@@ -41,7 +44,12 @@ pkgs.testers.runNixOSTest {
nodes = {
server =
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
{
imports = [
../modules/security.nix