sshd-start

This commit is contained in:
Fern Garden 2025-07-17 00:07:09 +08:00
parent 9bf27e1960
commit 6962ce76e2

View file

@ -11,13 +11,6 @@ with lib; let
sshdDirectory = "${config.user.home}/.sshd";
authorizedKeys = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIETPyuxUVEmYyEW6PVC6BXqkhULHd/RvMm8fMbYhjTMV fern@muskduck";
port = 8022;
sshd-start = pkgs.writeScriptBin "sshd-start" ''
#!${pkgs.runtimeShell}
echo "Starting sshd in non-daemonized way on port ${toString port}"
${pkgs.openssh}/bin/sshd -f "${sshdDirectory}/sshd_config" -D
'';
in {
# Set UID & GID
user = {
@ -59,9 +52,15 @@ in {
lynx
neovim
rsync
sshd-start
tmux
trash-cli
yazi
(pkgs.writeScriptBin "sshd-start" ''
#!${pkgs.runtimeShell}
echo "Starting sshd in non-daemonized way on port ${toString port}"
${pkgs.openssh}/bin/sshd -f "${sshdDirectory}/sshd_config" -D
'')
];
}