feat: actual good config from Isabel

This commit is contained in:
lewis
2026-02-21 20:51:03 +00:00
committed by Tangled
parent a7840e2ac5
commit 1521f98b2e
4 changed files with 231 additions and 706 deletions
+1
View File
@@ -36,5 +36,6 @@ in rustPlatform.buildRustPackage {
meta = {
license = lib.licenses.agpl3Plus;
mainProgram = "tranquil-pds";
};
}
+7 -1
View File
@@ -30,7 +30,13 @@
default = pkgs.callPackage ./shell.nix {};
});
nixosModules.default = import ./module.nix self;
nixosModules = {
default = self.nixosModules.tranquil-pds;
tranquil-pds = {
_file = "${self.outPath}/flake.nix#nixosModules.tranquil-pds";
imports = [(import ./module.nix self)];
};
};
checks.x86_64-linux.integration = import ./test.nix {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
+215 -695
View File
File diff suppressed because it is too large Load Diff
+8 -10
View File
@@ -16,11 +16,6 @@ pkgs.testers.nixosTest {
services.tranquil-pds = {
enable = true;
database.createLocally = true;
secretsFile = pkgs.writeText "tranquil-secrets" ''
JWT_SECRET=test-jwt-secret-must-be-32-chars-long
DPOP_SECRET=test-dpop-secret-must-be-32-chars-long
MASTER_KEY=test-master-key-must-be-32-chars-long
'';
nginx = {
enable = true;
@@ -28,12 +23,15 @@ pkgs.testers.nixosTest {
};
settings = {
server.pdsHostname = "test.local";
server.host = "0.0.0.0";
PDS_HOSTNAME = "test.local";
SERVER_HOST = "0.0.0.0";
storage.blobBackend = "filesystem";
rateLimiting.disable = true;
security.allowInsecureSecrets = true;
DISABLE_RATE_LIMITING = 1;
TRANQUIL_PDS_ALLOW_INSECURE_SECRETS = 1;
JWT_SECRET="test-jwt-secret-must-be-32-chars-long";
DPOP_SECRET="test-dpop-secret-must-be-32-chars-long";
MASTER_KEY="test-master-key-must-be-32-chars-long";
};
};
};