create radicle node on genepi

This commit is contained in:
2025-02-04 22:30:11 +01:00
parent 9bc510fb52
commit 3f72ad6ac9
6 changed files with 67 additions and 0 deletions

View File

@@ -7,8 +7,10 @@
{
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
inputs.agenix.nixosModules.default
inputs.disko.nixosModules.disko
./disk.nix
./radicle.nix
];
networking.hostName = "crocus";
@@ -53,4 +55,20 @@
}
];
};
services.nginx = {
enable = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
};
networking.firewall.allowedTCPPorts = [
80
443
];
security.acme = {
acceptTerms = true;
defaults.email = "admin@rpqt.fr";
};
}

21
hosts/crocus/radicle.nix Normal file
View File

@@ -0,0 +1,21 @@
{ config, keys, ... }:
{
services.radicle = {
enable = true;
privateKeyFile = config.age.secrets.radicle-private-key.path;
publicKey = keys.services.radicle;
node = {
openFirewall = true;
};
httpd = {
enable = true;
nginx = {
serverName = "radicle.rpqt.fr";
enableACME = true;
forceSSL = true;
};
};
};
age.secrets.radicle-private-key.file = ../../secrets/radicle-private-key.age;
}