diff --git a/nixos/boxes/mb1/default.nix b/nixos/boxes/mb1/default.nix index 02984fe8..061a3f50 100644 --- a/nixos/boxes/mb1/default.nix +++ b/nixos/boxes/mb1/default.nix @@ -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; }; } diff --git a/nixos/boxes/vpsfree1/search.nix b/nixos/boxes/vpsfree1/search.nix index 5e530dd9..defdf9ce 100644 --- a/nixos/boxes/vpsfree1/search.nix +++ b/nixos/boxes/vpsfree1/search.nix @@ -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"; }; }; }; }; diff --git a/nixos/home-manager/programs.nix b/nixos/home-manager/programs.nix index 4d9c159f..a180e122 100644 --- a/nixos/home-manager/programs.nix +++ b/nixos/home-manager/programs.nix @@ -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" ]; };