forked from M-Labs/nix-scripts
windows: Add Anaconda to base windows install
This commit is contained in:
parent
fbc4530388
commit
9f3e515c01
|
@ -12,9 +12,9 @@ nix-build build.nix
|
|||
```
|
||||
Results in a file called c.img
|
||||
|
||||
If in "pure" mode
|
||||
If in pure mode
|
||||
```shell
|
||||
nix-build --option sandbox false build.nix
|
||||
nix-build
|
||||
ls -la ./result
|
||||
```
|
||||
Results in a symlink to the image in the nix store
|
||||
|
|
|
@ -54,7 +54,11 @@ let
|
|||
}
|
||||
{
|
||||
Path = "powershell.exe Start-Service sshd";
|
||||
Description = "Now start the sshd service";
|
||||
Description = "Now start the sshd service.";
|
||||
}
|
||||
{
|
||||
Path = ''powershell.exe Set-Service -Name sshd -StartupType "Automatic"'';
|
||||
Description = "Enable SSH by default.";
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
@ -61,6 +61,18 @@ let
|
|||
'';
|
||||
};
|
||||
|
||||
anaconda = winPkgs.makePkg {
|
||||
name = "Anaconda3";
|
||||
src = pkgs.fetchurl {
|
||||
name = "Anaconda3.exe";
|
||||
url = "https://repo.anaconda.com/archive/Anaconda3-2019.03-Windows-x86_64.exe";
|
||||
sha256 = "1f9icm5rwab6l1f23a70dw0qixzrl62wbglimip82h4zhxlh3jfj";
|
||||
};
|
||||
installScript = ''
|
||||
Anaconda3.exe /InstallationType=AllUsers /RegisterPython=0 /S /D="C:\Program Files\\Anaconda3"
|
||||
'';
|
||||
};
|
||||
|
||||
in
|
||||
runQemuCommand "bootstrap-win-pkgs.img" ''
|
||||
mkdir pkgs
|
||||
|
@ -71,6 +83,7 @@ let
|
|||
cp ${bundleInstaller} pkgs/"$(stripHash "${bundleInstaller}")"
|
||||
cp ${nuget} pkgs/bootstrap/00_"$(stripHash "${nuget}")"
|
||||
cp ${opensshutils} pkgs/bootstrap/01_"$(stripHash "${opensshutils}")"
|
||||
cp ${anaconda} pkgs/bootstrap/02_"$(stripHash "${anaconda}")"
|
||||
|
||||
${lib.concatStringsSep "\n" (builtins.map (x: ''cp ${x} pkgs/bootstrap/"$(stripHash "${x}")"'') packages)}
|
||||
|
||||
|
|
Loading…
Reference in New Issue