sshd-start
This commit is contained in:
parent
9bf27e1960
commit
6962ce76e2
1 changed files with 7 additions and 8 deletions
|
@ -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
|
||||
'')
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue