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 {
|
setKhsPassword = pkgs.writeShellApplication {
|
||||||
name = "set-khs-password";
|
name = "set-khs-password";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
pkgs.su
|
|
||||||
pkgs.uutils-coreutils-noprefix
|
pkgs.uutils-coreutils-noprefix
|
||||||
];
|
];
|
||||||
text = ''
|
text = ''
|
||||||
|
@ -23,7 +22,7 @@ let
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
hashed_passwd="$(cat /run/unix-users/khs)"
|
hashed_passwd="$(cat /run/unix-users/khs)"
|
||||||
usermod --password "$hashed_passwd" khs
|
/run/current-system/sw/bin/usermod --password "$hashed_passwd" khs
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue