[wip] nix_flakes support #14

Draft
mwojcik wants to merge 12 commits from mwojcik/wfvm:nix_flakes into master
1 changed files with 6 additions and 4 deletions
Showing only changes of commit 94ca43da4b - Show all commits

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";