mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 03:26:13 +01:00
a5a651dbb9
Signed-off-by: main <magic_rb@redalder.org>
25 lines
472 B
Nix
25 lines
472 B
Nix
# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
|
|
#
|
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
|
{
|
|
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
|
|
'';
|
|
};
|
|
}
|