working remote atuin sync
This commit is contained in:
parent
93606a2694
commit
e663596473
3 changed files with 20 additions and 10 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{ config, pkgs, ... }: {
|
||||
imports = [ ../nginx.nix ];
|
||||
services.nginx = {
|
||||
virtualHosts = {
|
||||
"search.cyplo.dev" = {
|
||||
|
|
|
@ -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" ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue