chore(users): grfn -> aspen
Change-Id: I6c6847fac56f0a9a1a2209792e00a3aec5e672b9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10809 Autosubmit: aspen <root@gws.fyi> Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI Reviewed-by: lukegb <lukegb@tvl.fyi>
This commit is contained in:
parent
0ba476a426
commit
82ecd61f5c
478 changed files with 75 additions and 77 deletions
|
|
@ -1,49 +0,0 @@
|
|||
{ config, lib, pkgs, depot, ... }:
|
||||
|
||||
let
|
||||
cfg = config.services.xanthous-server;
|
||||
in
|
||||
{
|
||||
options = with lib; {
|
||||
services.xanthous-server = {
|
||||
enable = mkEnableOption "xanthous server";
|
||||
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
default = 2222;
|
||||
description = "Port to listen to for SSH connections";
|
||||
};
|
||||
|
||||
metricsPort = mkOption {
|
||||
type = types.int;
|
||||
default = 9000;
|
||||
description = "Port to listen to for prometheus metrics";
|
||||
};
|
||||
|
||||
image = mkOption {
|
||||
type = types.package;
|
||||
default = depot.users.grfn.xanthous.server.docker;
|
||||
description = "OCI image file to run";
|
||||
};
|
||||
|
||||
ed25519SecretKeyFile = mkOption {
|
||||
type = with types; uniq string;
|
||||
description = "Path to the ed25519 secret key for the server";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
virtualisation.oci-containers.containers."xanthous-server" = {
|
||||
autoStart = true;
|
||||
image = "${cfg.image.imageName}:${cfg.image.imageTag}";
|
||||
imageFile = cfg.image;
|
||||
ports = [
|
||||
"${toString cfg.port}:22"
|
||||
"${toString cfg.metricsPort}:9000"
|
||||
];
|
||||
environment.SECRET_KEY_FILE = "/secret-key";
|
||||
volumes = [ "/etc/secrets/xanthous-server-secret-key:/secret-key" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue