flake: fix passing additional args to makeWindowsImage

This commit is contained in:
mwojcik 2022-02-22 11:27:28 +08:00
parent dc36fd61d2
commit 94ca43da4b
1 changed files with 6 additions and 4 deletions

View File

@ -21,11 +21,13 @@
'';
# makeWindowsImage
makeWindowsImage = attrs: ( import wfvm/win.nix { inherit pkgs bundleInstaller; } // attrs );
makeWindowsImage = attrs: import wfvm/win.nix ({ inherit pkgs bundleInstaller; } // attrs );
build-demo-image = { impureMode ? false }: makeWindowsImage {
# Build install script & skip building iso
inherit impureMode;
# Custom base iso
# windowsImage = pkgs.requireFile rec {
# name = "Win10_21H1_English_x64.iso";
@ -57,14 +59,14 @@
# administratorPassword = "12345";
# Imperative installation commands, to be installed incrementally
installCommands = with layers; [
installCommands = pkgs.lib.optional (!impureMode) (with layers; [
(collapseLayers [
disable-autosleep
disable-autolock
disable-firewall
])
anaconda3 msys2 msvc msvc-ide-unbreak
];
]);
# services = {
# # Enable remote management
@ -113,7 +115,7 @@
packages.x86_64-linux = {
demo-image = build-demo-image {};
demo-image-impure = build-demo-image { impureMode = true; };
demo-image-impure = makeWindowsImage { impureMode = true; };
make-msys-packages = utils.wfvm-run {
name = "get-msys-packages";