24 lines
412 B
Nix
24 lines
412 B
Nix
{ lib, config, ... }:
|
|
let
|
|
enabled = config.mod.atuin.enable;
|
|
port = 8889;
|
|
in
|
|
{
|
|
options = {
|
|
mod.atuin = {
|
|
enable = lib.mkEnableOption "Enable atuin module";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf enabled {
|
|
services.atuin = {
|
|
enable = true;
|
|
host = "0.0.0.0";
|
|
inherit port;
|
|
openFirewall = true;
|
|
openRegistration = true;
|
|
database.createLocally = true;
|
|
};
|
|
};
|
|
}
|