mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
20 lines
456 B
Nix
20 lines
456 B
Nix
{ lib, config, ... }:
|
|
let
|
|
serviceName = "emacs";
|
|
servicePort = 9812;
|
|
in
|
|
{
|
|
options.swarselsystems.modules.server.${serviceName} = lib.mkEnableOption "enable ${serviceName} server on server";
|
|
config = lib.mkIf config.swarselsystems.modules.server.${serviceName} {
|
|
|
|
networking.firewall.allowedTCPPorts = [ servicePort ];
|
|
|
|
services.${serviceName} = {
|
|
enable = true;
|
|
install = true;
|
|
startWithGraphical = false;
|
|
};
|
|
|
|
};
|
|
|
|
}
|