Add atuin

This commit is contained in:
muon 2025-08-01 10:02:25 +00:00
parent 20d2ccd622
commit ac9947806a
3 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{ pkgs, lib, config, ... }:
let
cfg = config.mods.server.atuin;
port = config.mods.server.nginx.ports.atuin;
in with lib; {
options.mods.server = {
atuin = {
enable = mkEnableOption {
default = false;
description = "enables atuin server";
};
};
};
config = mkIf cfg.enable {
services.atuin = {
inherit port;
enable = true;
host = "0.0.0.0";
openRegistration = true;
};
};
}