aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-12-10 16:37:49 +0100
committerMartin Fischer <martin@push-f.com>2025-12-10 16:38:30 +0100
commitbf4df2661338744bb9237b64160bf4f008221d49 (patch)
tree6008e89f1a1144a66ec98ae82913e84c3f70aa06 /nixos
parent8093a29e545595fd53364510dc408176c0777482 (diff)
feat(hamac): add hugo-notes service
Diffstat (limited to 'nixos')
-rw-r--r--nixos/profiles/workstation/graphical.nix14
1 files changed, 14 insertions, 0 deletions
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"];
+ };
}