mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
nixos/systemd: include sshd in PATH if openssh is enabled
This enables systemd-ssh-generator to find the sshd binary.
This commit is contained in:
parent
5e43294735
commit
aab69d7f19
1 changed files with 6 additions and 1 deletions
|
@ -628,7 +628,12 @@ in
|
|||
systemd.managerEnvironment = {
|
||||
# Doesn't contain systemd itself - everything works so it seems to use the compiled-in value for its tools
|
||||
# util-linux is needed for the main fsck utility wrapping the fs-specific ones
|
||||
PATH = lib.makeBinPath (config.system.fsPackages ++ [cfg.package.util-linux]);
|
||||
PATH = lib.makeBinPath (
|
||||
config.system.fsPackages
|
||||
++ [cfg.package.util-linux]
|
||||
# systemd-ssh-generator needs sshd in PATH
|
||||
++ lib.optional config.services.openssh.enable config.services.openssh.package
|
||||
);
|
||||
LOCALE_ARCHIVE = "/run/current-system/sw/lib/locale/locale-archive";
|
||||
TZDIR = "/etc/zoneinfo";
|
||||
# If SYSTEMD_UNIT_PATH ends with an empty component (":"), the usual unit load path will be appended to the contents of the variable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue