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 ++++++++++++++ user/sway/config | 1 - 2 files changed, 14 insertions(+), 1 deletion(-) 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"]; + }; } diff --git a/user/sway/config b/user/sway/config index 5698aae..9f5798e 100644 --- a/user/sway/config +++ b/user/sway/config @@ -20,7 +20,6 @@ set $term foot set $menu wmenu-run ### Output configuration -exec_always <~/repos/notes/roadmap.md sed 's/(.\+)//' | set-wallpaper # Example configuration: # -- cgit v1.3.1