dotfiles/nix/nixos-modules/sshd-emacs.nix
Magic_RB 76513487e9
Streamline SSH emacs forwarding
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2021-08-19 18:24:38 +02:00

18 lines
347 B
Nix

{ config, lib, options, pkgs, ... }:
with lib;
let
cfg = config.magic_rb.sshdEmacs;
in
{
options.magic_rb.sshdEmacs = {
enable = mkEnableOption "Enable sshd options necessary for emacs socket forwarding.";
};
config = {
services.openssh.extraConfig = ''
AcceptEnv INSIDE_EMACS
StreamLocalBindUnlink yes
'';
};
}