mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 19:46:17 +01:00
76513487e9
Signed-off-by: Magic_RB <magic_rb@redalder.org>
18 lines
347 B
Nix
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
|
|
'';
|
|
};
|
|
}
|