forked from colonelpanic/dotfiles
[NixOS] Enable emacs org-api server
This commit is contained in:
@@ -99,12 +99,28 @@ in
|
|||||||
database.ignorePostgresqlVersion = true;
|
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 = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
recommendedGzipSettings = true;
|
recommendedGzipSettings = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
|
"org-mode.1896folsom.duckdns.org" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/".proxyPass = "http://localhost:2025";
|
||||||
|
};
|
||||||
"gitlab.railbird.ai" = {
|
"gitlab.railbird.ai" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user