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 {
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 = ''
if test -d /persist; then
mkdir -p /persist/secrets/dropbear
ln -s /persist/secrets/dropbear /run
fi
PATH=${lib.makeBinPath config.defaultProfile.packages}:/bin
exec env -i ENV=/etc/ashrc PATH=$PATH ${dropbear}/bin/dropbear -e -E -R -P /run/dropbear.pid -F
${dropbear}/bin/dropbear -E -R -P /run/dropbear.pid -F
'';
};

View File

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