mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-30 03:56:12 +01:00
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
|
||
|
'';
|
||
|
};
|
||
|
}
|