/nix/store/dlwqlnbaj5vfm9aw20r1yxk8y56lmgif-repo/header.tmpl

Compare commits

..

No commits in common. "248985229728484a9efb35789e0d346fec536fd4" and "274c91a8f731732f13c44cd6e52511389bad67b9" have entirely different histories.

2 changed files with 0 additions and 47 deletions

View file

@ -34,7 +34,6 @@
};
services = {
forgejo.enable = true;
radicle.enable = true;
grafana.enable = true;
prometheus.enable = true;
};

View file

@ -1,46 +0,0 @@
{
config,
lib,
pkgs,
...
}:
let
inherit (lib.lists) singleton;
inherit (lib.modules) mkIf;
inherit (lib.options) mkEnableOption;
inherit (lib.strings) toString;
port = toString 8776;
domain = "git.faukah.com";
cfg = config.modules.system.services.radicle;
in
{
options.modules.system.services.radicle.enable = mkEnableOption "radicle";
config.services.radicle = mkIf cfg.enable {
enable = false;
checkConfig = true;
privateKeyFile = "/etc/ssh/ssh_host_ed25519_key";
publicKey = "/etc/ssh/ssh_host_ed25519_key.pub";
httpd = {
enable = true;
listenPort = port;
listenAddress = "[::]";
nginx = {
addSSL = true;
enableACME = true;
serverName = domain;
};
};
settings = {
node = {
alias = domain;
listen = singleton "[::]:${port}";
externalAddresses = "${domain}:${port}";
seedingPolicy = {
default = "block";
scope = "all";
};
};
};
};
}