Compare commits
2 Commits
a48d51ffdc
...
bc27f121d9
Author | SHA1 | Date | |
---|---|---|---|
bc27f121d9 | |||
0173a9ced9 |
@ -151,12 +151,21 @@ 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
|
||||
${dropbear}/bin/dropbear -E -R -P /run/dropbear.pid -F
|
||||
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
|
||||
'';
|
||||
};
|
||||
|
||||
|
@ -146,13 +146,17 @@ in {
|
||||
console = node "c" "5" "1" "0600";
|
||||
pts = dir {};
|
||||
};
|
||||
etc = dir {
|
||||
etc = let
|
||||
profile = symlink
|
||||
(pkgs.writeScript ".profile" ''
|
||||
PATH=${lib.makeBinPath config.defaultProfile.packages}:/bin
|
||||
export PATH
|
||||
'');
|
||||
in dir {
|
||||
inherit profile;
|
||||
ashrc = profile;
|
||||
};
|
||||
|
||||
proc = dir {};
|
||||
run = dir {};
|
||||
sys = dir {};
|
||||
|
Loading…
Reference in New Issue
Block a user