# Install 7-Zip and set file associations { pkgs, makeFilesISO, ... }: let installer = pkgs.fetchurl { url = "https://github.com/ip7z/7zip/releases/download/26.00/7z2600-x64.msi"; hash = "sha256-w4jQREhxyhGyEjcAGvFYz92tfhN4UXleW2XO5ptRhJU="; }; assocReg = ./7zip-file-associations.reg; in { name = "7zip"; cdroms = [ (makeFilesISO { name = "7zip"; files = [ installer assocReg ]; }) ]; auditScript = '' @echo off echo Installing 7-Zip... msiexec /i "D:\7z2600-x64.msi" /qn /norestart echo Importing 7-Zip file associations... regedit /s "D:\7zip-file-associations.reg" ''; }