1
0

Compare commits

..

No commits in common. "bc27f121d984f7f294bf9a3768a1f866c7ef7f61" and "a48d51ffdc8c2a38c36663535f126cb6d8c36e61" have entirely different histories.

2 changed files with 4 additions and 17 deletions

View File

@ -151,21 +151,12 @@ in rec {
services.sshd = longrun { services.sshd = longrun {
name = "sshd"; name = "sshd";
# env -i clears the environment so we don't pass anything weird to
# ssh sessions. Dropbear params are
# -e pass environment to child
# -E log to stderr
# -R create hostkeys if needed
# -P pid-file
# -F don't fork into background
run = '' run = ''
if test -d /persist; then if test -d /persist; then
mkdir -p /persist/secrets/dropbear mkdir -p /persist/secrets/dropbear
ln -s /persist/secrets/dropbear /run ln -s /persist/secrets/dropbear /run
fi fi
PATH=${lib.makeBinPath config.defaultProfile.packages}:/bin ${dropbear}/bin/dropbear -E -R -P /run/dropbear.pid -F
exec env -i ENV=/etc/ashrc PATH=$PATH ${dropbear}/bin/dropbear -e -E -R -P /run/dropbear.pid -F
''; '';
}; };

View File

@ -146,17 +146,13 @@ in {
console = node "c" "5" "1" "0600"; console = node "c" "5" "1" "0600";
pts = dir {}; pts = dir {};
}; };
etc = let etc = dir {
profile = symlink profile = symlink
(pkgs.writeScript ".profile" '' (pkgs.writeScript ".profile" ''
PATH=${lib.makeBinPath config.defaultProfile.packages}:/bin PATH=${lib.makeBinPath config.defaultProfile.packages}:/bin
export PATH export PATH
''); '');
in dir {
inherit profile;
ashrc = profile;
}; };
proc = dir {}; proc = dir {};
run = dir {}; run = dir {};
sys = dir {}; sys = dir {};