working remote atuin sync

This commit is contained in:
Cyryl Płotnicki 2023-04-17 14:11:38 +01:00
parent 93606a2694
commit e663596473
3 changed files with 20 additions and 10 deletions

View file

@ -4,6 +4,7 @@
./disks.nix
"${inputs.nixpkgs-stable}/nixos/modules/profiles/qemu-guest.nix"
"${inputs.nixpkgs-nixos-unstable}/nixos/modules/services/misc/atuin.nix"
../nginx.nix
];
networking.hostName = "mb1";
environment.systemPackages = with pkgs; [ ];
@ -17,16 +18,27 @@
zramSwap = {
enable = true;
algorithm = "zstd";
memoryPercent = 80;
memoryPercent = 100;
};
time.timeZone = "Europe/London";
disabledModules = [ "services/misc/atuin.nix" ];
services.nginx = {
virtualHosts = {
"atuin.cyplo.dev" = {
forceSSL = true;
enableACME = true;
locations."/" = { proxyPass = "http://127.0.0.1:8888"; };
};
};
};
services.atuin = {
host = "127.0.0.1";
port = 8888;
enable = true;
openFirewall = true;
openRegistration = true;
openRegistration = false;
};
}

View file

@ -1,8 +1,5 @@
{
config,
pkgs,
...
}: {
{ config, pkgs, ... }: {
imports = [ ../nginx.nix ];
services.nginx = {
virtualHosts = {
"search.cyplo.dev" = {
@ -15,7 +12,7 @@
proxy_send_timeout 60s;
proxy_read_timeout 60s;
'';
locations."/" = {proxyPass = "http://localhost:8888";};
locations."/" = { proxyPass = "http://localhost:8888"; };
};
};
};

View file

@ -15,13 +15,14 @@
};
taskwarrior.enable = true;
fzf.enable = true;
atuin = {
enable = true;
settings = {
auto_sync = true;
sync_frequency = "5m";
sync_address = "https://atuin.cyplo.dev";
search_mode = "prefix";
search_mode = "fuzzy";
};
# flags = [ "--disable-up-arrow" ];
};