atuin: Init server and client modules

This commit is contained in:
SebastianStork 2026-02-07 21:45:51 +01:00
parent fa2bef14f4
commit eef54ae432
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
2 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,27 @@
{ config, lib, ... }:
let
cfg = config.custom.web-services.atuin;
in
{
options.custom.web-services.atuin = {
enable = lib.mkEnableOption "";
domain = lib.mkOption {
type = lib.types.nonEmptyStr;
default = "";
};
port = lib.mkOption {
type = lib.types.port;
default = 8849;
};
};
config = lib.mkIf cfg.enable {
services.atuin = {
enable = true;
openRegistration = true;
inherit (cfg) port;
};
custom.services.caddy.virtualHosts.${cfg.domain}.port = cfg.port;
};
}