2020-06-14 17:06:03 +08:00
|
|
|
{ pkgs ? import <nixpkgs> {}, impureMode ? false }:
|
2020-06-14 12:15:00 +08:00
|
|
|
|
|
|
|
let
|
2020-06-15 00:28:31 +08:00
|
|
|
wfvm = (import ./default.nix { inherit pkgs; });
|
2020-06-14 12:15:00 +08:00
|
|
|
in
|
2020-06-15 00:28:31 +08:00
|
|
|
wfvm.makeWindowsImage {
|
|
|
|
# Build install script & skip building iso
|
|
|
|
inherit impureMode;
|
2020-06-14 12:15:00 +08:00
|
|
|
|
|
|
|
# Custom base iso
|
|
|
|
# windowsImage = pkgs.fetchurl {
|
|
|
|
# url = "https://software-download.microsoft.com/download/sg/17763.107.101029-1455.rs5_release_svc_refresh_CLIENT_LTSC_EVAL_x64FRE_en-us.iso";
|
|
|
|
# sha256 = "668fe1af70c2f7416328aee3a0bb066b12dc6bbd2576f40f812b95741e18bc3a";
|
|
|
|
# };
|
|
|
|
|
2020-06-15 00:28:31 +08:00
|
|
|
# impureShellCommands = [
|
|
|
|
# "powershell.exe echo Hello"
|
|
|
|
# ];
|
|
|
|
|
2020-06-14 12:15:00 +08:00
|
|
|
# User accounts
|
2020-06-15 18:27:11 +08:00
|
|
|
# users = {
|
|
|
|
# artiq = {
|
|
|
|
# password = "1234";
|
|
|
|
# # description = "Default user";
|
|
|
|
# # displayName = "Display name";
|
|
|
|
# groups = [
|
|
|
|
# "Administrators"
|
|
|
|
# ];
|
|
|
|
# };
|
|
|
|
# };
|
2020-06-14 12:15:00 +08:00
|
|
|
|
2020-06-15 00:28:31 +08:00
|
|
|
# Auto login
|
2020-06-15 18:27:11 +08:00
|
|
|
# defaultUser = "artiq";
|
2020-06-14 12:15:00 +08:00
|
|
|
|
2020-06-15 18:27:11 +08:00
|
|
|
# fullName = "M-Labs";
|
|
|
|
# organization = "m-labs";
|
|
|
|
# administratorPassword = "12345";
|
2020-06-14 12:15:00 +08:00
|
|
|
|
|
|
|
# Imperative installation commands, to be installed incrementally
|
2020-06-27 17:22:34 +08:00
|
|
|
installCommands = with wfvm.layers; [ anaconda3 msys2 msvc msvc-ide-unbreak ];
|
2020-06-14 12:15:00 +08:00
|
|
|
|
|
|
|
# services = {
|
|
|
|
# # Enable remote management
|
|
|
|
# WinRm = {
|
|
|
|
# Status = "Running";
|
|
|
|
# PassThru = true;
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
|
|
|
|
# License key
|
|
|
|
# productKey = "iboughtthisone";
|
|
|
|
|
|
|
|
# Locales
|
|
|
|
# uiLanguage = "en-US";
|
|
|
|
# inputLocale = "en-US";
|
|
|
|
# userLocale = "en-US";
|
|
|
|
# systemLocale = "en-US";
|
|
|
|
|
|
|
|
}
|