From d0a704232496a6876db7466404896cdafa810cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20SALVI?= Date: Thu, 31 Jul 2025 18:23:51 +0200 Subject: [PATCH] debug update.sh --- modules/common/default.nix | 1 + modules/desktop/wayland/config/scripts/update.sh | 2 +- modules/networking/home-nix.nix | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/common/default.nix b/modules/common/default.nix index 7d0088b..83aa191 100644 --- a/modules/common/default.nix +++ b/modules/common/default.nix @@ -68,6 +68,7 @@ pkgs.cifs-utils pkgs.neovim pkgs.unzip + pkgs.openssl # Nvim with dependencies pkgs.nodejs pkgs.gcc diff --git a/modules/desktop/wayland/config/scripts/update.sh b/modules/desktop/wayland/config/scripts/update.sh index fa98d0a..79d0ef6 100755 --- a/modules/desktop/wayland/config/scripts/update.sh +++ b/modules/desktop/wayland/config/scripts/update.sh @@ -17,7 +17,7 @@ if [ "$current_hash" != "$latest_hash" ]; then maj_count=$(curl -s "https://api.github.com/repos/NixOS/nixpkgs/compare/${current_hash}...${latest_hash}" | jq -r '.ahead_by // 0' 2>/dev/null || echo "?") # Date du commit distant - remote_commit_date=$(curl -s https://api.github.com/repos/NixOS/nixpkgs/commits/c87b95e25065c028d31a94f06a62927d18763fdf | jq -r '.commit.author.date') + remote_commit_date=$(curl -s https://api.github.com/repos/NixOS/nixpkgs/commits/"${latest_hash}" | jq -r '.commit.author.date') remote_commit_date=$(date -d "${remote_commit_date}" "+%d/%m/%Y à %H:%M") printf '{"text": "%s ", "tooltip": "Commit distant : %s\\nCommit local : %s"}' "${maj_count}" "${remote_commit_date}" "${local_commit_date}" # Compter les commits entre les deux diff --git a/modules/networking/home-nix.nix b/modules/networking/home-nix.nix index 7403c1e..2777f96 100644 --- a/modules/networking/home-nix.nix +++ b/modules/networking/home-nix.nix @@ -23,8 +23,9 @@ ]; networkmanager.enable = true; extraHosts = '' - 172.18.23.4 dozzle.grandbesancon.fr - 172.18.21.67 toto.grandbesancon.fr + #172.18.23.4 dozzle.grandbesancon.fr + 172.18.22.206 toto.grandbesancon.fr + 172.18.22.206 sso.grandbesancon.fr ''; wireguard = { interfaces = {