Added possibility to customize key location for closed-install.nix

svn path=/nixos/trunk/; revision=12755
This commit is contained in:
Michael Raskin 2008-08-27 21:03:26 +00:00
parent 6e6f867a0a
commit 385ffce14d

View File

@ -1,6 +1,7 @@
{ {
platform ? __currentSystem platform ? __currentSystem
,hostConnectPort ? "3737" ,hostConnectPort ? "3737"
,sshPubKey ? /var/certs/ssh/id_livedvd.pub
} : } :
let let
isoFun = import ./rescue-cd-configurable.nix; isoFun = import ./rescue-cd-configurable.nix;
@ -48,7 +49,7 @@ in
*/ */
additionalFiles = [ additionalFiles = [
{ {
source = /var/certs/ssh/id_livedvd.pub; source = sshPubKey;
target = "/root/.ssh/authorized_keys"; target = "/root/.ssh/authorized_keys";
} }
]; ];