mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add atuin
This commit is contained in:
parent
20d2ccd622
commit
ac9947806a
3 changed files with 26 additions and 0 deletions
24
modules/nixos/server/atuin.nix
Normal file
24
modules/nixos/server/atuin.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue