Merge pull request #16703 from zimbatm/nologin-error

Nologin error
This commit is contained in:
zimbatm 2016-07-07 22:58:53 +01:00 committed by GitHub
commit 2459ddd4f6
2 changed files with 6 additions and 3 deletions

View File

@ -12,6 +12,8 @@ rec {
toShellPath = shell:
if types.shellPackage.check shell then
"/run/current-system/sw${shell.shellPath}"
else if types.package.check shell then
throw "${shell} is not a shell package"
else
shell;
}

View File

@ -53,8 +53,9 @@ stdenv.mkDerivation rec {
meta = {
homepage = http://pkg-shadow.alioth.debian.org/;
description = "Suite containing authentication-related tools such as passwd and su";
passthru = {
shellPath = "/bin/nologin";
};
};
passthru = {
shellPath = "/bin/nologin";
};
}