dotfiles/nix/nixos-modules/sshd-emacs.nix

18 lines
347 B
Nix
Raw Normal View History

{ 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
'';
};
}