From bf4df2661338744bb9237b64160bf4f008221d49 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Wed, 10 Dec 2025 16:37:49 +0100 Subject: feat(hamac): add hugo-notes service --- nixos/profiles/workstation/graphical.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'nixos') diff --git a/nixos/profiles/workstation/graphical.nix b/nixos/profiles/workstation/graphical.nix index a9202ad..10ca662 100644 --- a/nixos/profiles/workstation/graphical.nix +++ b/nixos/profiles/workstation/graphical.nix @@ -133,4 +133,18 @@ }; }; }; + + systemd.user.services.hugo-notes = { + after = ["network.target"]; + + serviceConfig = { + Type = "simple"; + WorkingDirectory = "%h/repos/notes"; + ExecStart = "${pkgs.hugo}/bin/hugo serve --port 1313"; + Restart = "on-failure"; + RestartSec = "5s"; + }; + + wantedBy = ["default.target"]; + }; } -- cgit v1.3.1