traffic dns fix

This commit is contained in:
m3tam3re 2025-02-20 15:47:16 +01:00
parent 25b1fa76d7
commit 74d4940e27
9 changed files with 32 additions and 7 deletions

View File

@ -29,6 +29,7 @@ in {
set -x FZF_DEFAULT_COMMAND fd --type f --exclude .git --follow --hidden
set -x FZF_CTRL_T_COMMAND "$FZF_DEFAULT_COMMAND"
set -x FLAKE $HOME/p/nixos/nixos-config
source /run/agenix/${config.home.username}-secrets
if test (tty) = "/dev/tty1"
exec uwsm start -S -F /run/current-system/sw/bin/Hyprland

View File

@ -4,6 +4,7 @@
devpod-desktop
(python3.withPackages (ps:
with ps; [
pip
# Scientific packages
numba
numpy

View File

@ -72,6 +72,13 @@ in {
api_url = "http://localhost:11434";
};
};
ssh_connections = [
{
host = "152.53.85.162";
nickname = "m3-atlas";
args = ["-i" "~/.ssh/m3tam3re"];
}
];
auto_update = false;
format_on_save = "on";
vim_mode = true;

View File

@ -4,6 +4,13 @@
webhookUrl = "https://wf.m3tam3re.com";
};
systemd.services.n8n = {
environment = {
N8N_EDITOR_BASE_URL = "https://wf.m3tam3re.com";
N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS = "false";
};
};
# Traefik configuration specific to n8n
services.traefik.dynamicConfigOptions.http = {
services.n8n.loadBalancer.servers = [

View File

@ -11,6 +11,8 @@
caserver = "https://acme-v02.api.letsencrypt.org/directory";
dnsChallenge = {
provider = "godaddy";
resolvers = ["1.1.1.1:53" "8.8.8.8:53"];
propagation.delayBeforeChecks = 60;
};
};
};

View File

@ -63,7 +63,7 @@
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [neovim git];
environment.systemPackages = with pkgs; [neovim git n8n];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.

View File

@ -6,6 +6,7 @@
systemd.services.n8n = {
environment = {
N8N_SECURE_COOKIE = "false";
N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS = "false";
};
};
}

View File

@ -1,17 +1,17 @@
{prev}:
prev.n8n.overrideAttrs (oldAttrs: rec {
pname = oldAttrs.pname;
version = "1.78.0";
version = "1.78.1";
src = prev.fetchFromGitHub {
owner = "n8n-io";
repo = "n8n";
rev = "n8n@${version}";
hash = "sha256-ebMuhbUyak13wQ7qWvpNCcmL52J24QPsGmEvIifnzVo=";
hash = "sha256-hFCK9eboOsA3wsrpCs0Vn70zITOttTT3PmV/MtMzV8I=";
};
pnpmDeps = prev.pnpm_9.fetchDeps {
inherit pname version src;
hash = "sha256-1vheGCTGacrQMVJjYrEuv4NC4ImSb+WAbYLXpEithnM=";
hash = "sha256-ggTxmDWnvmzWxj/FpGmsuGyUf9NwN1XxeMLJ20MmEWc=";
};
})

View File

@ -8,7 +8,7 @@
}: let
pythonEnv = python3.withPackages (ps:
with ps; [
# Add any Python packages you want available globally here
pip
virtualenv
]);
in
@ -27,10 +27,16 @@ in
#!/bin/sh
VENV_DIR="\$HOME/.aider-chat-venv"
if [ ! -d "\$VENV_DIR" ]; then
echo "Creating new virtual environment in \$VENV_DIR..."
${pythonEnv}/bin/python -m venv "\$VENV_DIR"
source "\$VENV_DIR/bin/activate"
# Upgrade pip first
python -m pip install --no-cache-dir --upgrade pip
# Install aider-chat
python -m pip install --no-cache-dir aider-chat
else
source "\$VENV_DIR/bin/activate"
fi
source "\$VENV_DIR/bin/activate"
python -m pip install -U aider-chat
exec "\$SHELL"
EOF
chmod +x $out/bin/aider-chat-env