From da8f43f652744b8af436e0fe0f81bd3b90647189 Mon Sep 17 00:00:00 2001 From: DuN0z Date: Wed, 8 Oct 2025 11:40:24 +0200 Subject: [PATCH] Fix: hugo build --- hosts/terre-neuvas/configuration.nix | 1 - modules/sites/levr.porzh.me.nix | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hosts/terre-neuvas/configuration.nix b/hosts/terre-neuvas/configuration.nix index 0a6c5c7..77b7456 100644 --- a/hosts/terre-neuvas/configuration.nix +++ b/hosts/terre-neuvas/configuration.nix @@ -46,7 +46,6 @@ environment.systemPackages = with pkgs; [ neovim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. git - hugo ]; networking = { useNetworkd = true; diff --git a/modules/sites/levr.porzh.me.nix b/modules/sites/levr.porzh.me.nix index 20280b6..7401c30 100644 --- a/modules/sites/levr.porzh.me.nix +++ b/modules/sites/levr.porzh.me.nix @@ -1,4 +1,4 @@ -{ pkgs, ...}: { +{ pkgs, lib, ...}: { environment.systemPackages = with pkgs; [ hugo ]; @@ -15,6 +15,9 @@ ''; User = "lomig"; }; + environment = { + PATH = lib.mkForce "${pkgs.git}/bin:${pkgs.hugo}/bin:${pkgs.openssh}/bin"; + }; }; systemd.timers.hugo-build = { description = "Timer pour rebuild du blog";