windows: Fix extra quote

wfvm
adisbladis 2020-01-27 07:19:57 +00:00 committed by Stephan Maka
parent 70562bcdfd
commit fbc4530388
1 changed files with 6 additions and 2 deletions

View File

@ -37,7 +37,11 @@ let
# If we are running in impure mode we can also enable networked services
impureSetupCommands = let
makeDirs = lib.mapAttrsToList (n: v: ''mkdir C:\Users\${n}\.ssh'') users;
writeKeys = lib.flatten (lib.mapAttrsToList (n: v: builtins.map (key: ''echo "${key}" >> C:\Users\${n}\.ssh\authorized_keys'') (v.sshKeys or [])) users);
writeKeys = lib.flatten (lib.mapAttrsToList (n: v: builtins.map (key: let
commands = [
''echo "${key}" | Out-File -FilePath C:\Users\${n}\.ssh\authorized_keys''
];
in lib.concatStringsSep "\n" commands) (v.sshKeys or [])) users);
in makeDirs ++ writeKeys ++ [
# TODO: Figure out how to do this step with sandboxing enabled
{
@ -45,7 +49,7 @@ let
Description = "Local powershell repo import";
}
{
Path = ''powershell.exe Install-Module -Repository ""bootstraprepo" -Force OpenSSHUtils -Scope AllUsers'';
Path = ''powershell.exe Install-Module -Repository "bootstraprepo" -Force OpenSSHUtils -Scope AllUsers'';
Description = "Install Openssh.";
}
{