diff --git a/nixos/modules/services/x11/display-managers/default.nix b/nixos/modules/services/x11/display-managers/default.nix index 7fc8db95a485..d910ac566d87 100644 --- a/nixos/modules/services/x11/display-managers/default.nix +++ b/nixos/modules/services/x11/display-managers/default.nix @@ -122,10 +122,10 @@ let done if test -d ${pkg}/share/xsessions; then - ${xorg.lndir}/bin/lndir ${pkg}/share/xsessions $out/share/xsessions + ${pkgs.buildPackages.xorg.lndir}/bin/lndir ${pkg}/share/xsessions $out/share/xsessions fi if test -d ${pkg}/share/wayland-sessions; then - ${xorg.lndir}/bin/lndir ${pkg}/share/wayland-sessions $out/share/wayland-sessions + ${pkgs.buildPackages.xorg.lndir}/bin/lndir ${pkg}/share/wayland-sessions $out/share/wayland-sessions fi '') cfg.displayManager.sessionPackages} ''; diff --git a/nixos/modules/system/boot/systemd-lib.nix b/nixos/modules/system/boot/systemd-lib.nix index 2dbf15031a08..6c4d27018eed 100644 --- a/nixos/modules/system/boot/systemd-lib.nix +++ b/nixos/modules/system/boot/systemd-lib.nix @@ -4,7 +4,7 @@ with lib; let cfg = config.systemd; - lndir = "${pkgs.xorg.lndir}/bin/lndir"; + lndir = "${pkgs.buildPackages.xorg.lndir}/bin/lndir"; in rec { shellEscape = s: (replaceChars [ "\\" ] [ "\\\\" ] s);