From 76253e34ef9471b43ab8c1163f5e2713bb598aef Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 2 Jan 2025 23:51:20 -0700 Subject: [PATCH] [NixOS] Enable emacs org-api server --- nixos/machines/biskcomp.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/nixos/machines/biskcomp.nix b/nixos/machines/biskcomp.nix index 9134a498..4daecf13 100644 --- a/nixos/machines/biskcomp.nix +++ b/nixos/machines/biskcomp.nix @@ -99,12 +99,28 @@ in database.ignorePostgresqlVersion = true; }; + systemd.services.emacs-org-api = { + description = "Emacs org api"; + after = [ "network.target" ]; + wantedBy = [ "multi-user.target" ]; + serviceConfig = { + Restart = "on-failure"; + User = "imalison"; + }; + ExecStart = "${pkgs.emacs} --load /home/imalison/org-api.el --daemon=org-api"; + }; + services.nginx = { enable = true; recommendedProxySettings = true; recommendedGzipSettings = true; recommendedTlsSettings = true; virtualHosts = { + "org-mode.1896folsom.duckdns.org" = { + enableACME = true; + forceSSL = true; + locations."/".proxyPass = "http://localhost:2025"; + }; "gitlab.railbird.ai" = { enableACME = true; forceSSL = true;