Hardcode path to usermod
Apparently adding dependency on `su` does not seem to put usermod in path
This commit is contained in:
parent
ac1c6adc75
commit
e7c73f98dd
1 changed files with 1 additions and 2 deletions
|
@ -11,7 +11,6 @@ let
|
|||
setKhsPassword = pkgs.writeShellApplication {
|
||||
name = "set-khs-password";
|
||||
runtimeInputs = [
|
||||
pkgs.su
|
||||
pkgs.uutils-coreutils-noprefix
|
||||
];
|
||||
text = ''
|
||||
|
@ -23,7 +22,7 @@ let
|
|||
exit 1
|
||||
fi
|
||||
hashed_passwd="$(cat /run/unix-users/khs)"
|
||||
usermod --password "$hashed_passwd" khs
|
||||
/run/current-system/sw/bin/usermod --password "$hashed_passwd" khs
|
||||
'';
|
||||
};
|
||||
in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue