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";
|
sshdDirectory = "${config.user.home}/.sshd";
|
||||||
authorizedKeys = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIETPyuxUVEmYyEW6PVC6BXqkhULHd/RvMm8fMbYhjTMV fern@muskduck";
|
authorizedKeys = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIETPyuxUVEmYyEW6PVC6BXqkhULHd/RvMm8fMbYhjTMV fern@muskduck";
|
||||||
port = 8022;
|
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 {
|
in {
|
||||||
# Set UID & GID
|
# Set UID & GID
|
||||||
user = {
|
user = {
|
||||||
|
@ -59,9 +52,15 @@ in {
|
||||||
lynx
|
lynx
|
||||||
neovim
|
neovim
|
||||||
rsync
|
rsync
|
||||||
sshd-start
|
|
||||||
tmux
|
tmux
|
||||||
trash-cli
|
trash-cli
|
||||||
yazi
|
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