diff --git a/artiq-fast/windows/autounattend.nix b/artiq-fast/windows/autounattend.nix index 614b1a1..302a3de 100644 --- a/artiq-fast/windows/autounattend.nix +++ b/artiq-fast/windows/autounattend.nix @@ -35,17 +35,18 @@ let ) ) services; - sshSetupCommands = let - makeDirs = lib.mapAttrsToList (n: v: ''mkdir C:\Users\${n}\.ssh'') users; - writeKeys = lib.flatten (lib.mapAttrsToList (n: v: builtins.map (key: let - commands = [ - ''powershell.exe Set-Content -Path C:\Users\${n}\.ssh\authorized_keys -Value '${key}' '' - ]; - in lib.concatStringsSep "\n" commands) (v.sshKeys or [])) users); - mkDirsDesc = builtins.map (c: {Path = c; Description = "Make SSH key dir";}) makeDirs; - writeKeysDesc = builtins.map (c: {Path = c; Description = "Add SSH key";}) writeKeys; - in - # mkDirsDesc ++ writeKeysDesc ++ + sshSetupCommands = + # let + # makeDirs = lib.mapAttrsToList (n: v: ''mkdir C:\Users\${n}\.ssh'') users; + # writeKeys = lib.flatten (lib.mapAttrsToList (n: v: builtins.map (key: let + # commands = [ + # ''powershell.exe Set-Content -Path C:\Users\${n}\.ssh\authorized_keys -Value '${key}' '' + # ]; + # in lib.concatStringsSep "\n" commands) (v.sshKeys or [])) users); + # mkDirsDesc = builtins.map (c: {Path = c; Description = "Make SSH key dir";}) makeDirs; + # writeKeysDesc = builtins.map (c: {Path = c; Description = "Add SSH key";}) writeKeys; + # in + # mkDirsDesc ++ writeKeysDesc ++ [ { Path = ''powershell.exe Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 -Source ${driveLetter}\fod -LimitAccess''; @@ -106,7 +107,7 @@ let , description ? "" , displayName ? "" , groups ? [] - , sshKeys ? [] # Handled in scripts + # , sshKeys ? [] # Handled in scripts }: '' diff --git a/artiq-fast/windows/build.nix b/artiq-fast/windows/build.nix index 1d62884..1d475f4 100644 --- a/artiq-fast/windows/build.nix +++ b/artiq-fast/windows/build.nix @@ -15,9 +15,6 @@ win.makeWindowsImage { # User accounts users = { artiq = { - # sshKeys = [ - # "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEmJW3Z+1ZNNVao2jcipQQxiEN27jtpl40fq3Je+jgir" - # ]; password = "1234"; # description = "Default user"; # displayName = "Display name";