dotfiles/nixos/boxes/mb1/atuin.nix

31 lines
537 B
Nix
Raw Normal View History

2023-08-13 17:00:41 +01:00
{
config,
pkgs,
inputs,
lib,
...
}: {
2023-04-17 15:19:45 +01:00
imports = [
"${inputs.nixpkgs-nixos-unstable}/nixos/modules/services/misc/atuin.nix"
../nginx.nix
];
2023-08-13 17:00:41 +01:00
disabledModules = ["services/misc/atuin.nix"];
2023-04-17 15:19:45 +01:00
services.nginx = {
virtualHosts = {
"atuin.cyplo.dev" = {
forceSSL = true;
enableACME = true;
2023-08-13 17:00:41 +01:00
locations."/" = {proxyPass = "http://127.0.0.1:8888";};
2023-04-17 15:19:45 +01:00
};
};
};
services.atuin = {
host = "127.0.0.1";
port = 8888;
enable = true;
openRegistration = false;
};
}