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
|
|
@ -18,6 +18,7 @@
|
||||||
# dash = 3009;
|
# dash = 3009;
|
||||||
ntfy = 3010;
|
ntfy = 3010;
|
||||||
audio = 3011;
|
audio = 3011;
|
||||||
|
atuin = 3012;
|
||||||
|
|
||||||
search = 8081;
|
search = 8081;
|
||||||
videos = 8082;
|
videos = 8082;
|
||||||
|
|
|
||||||
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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -24,5 +24,6 @@
|
||||||
./ntfy.nix
|
./ntfy.nix
|
||||||
./lemmy.nix
|
./lemmy.nix
|
||||||
./audio.nix
|
./audio.nix
|
||||||
|
./atuin.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue