Use same installer script for all profiles
This commit is contained in:
parent
5f89d3df85
commit
0d66964615
5 changed files with 4 additions and 5 deletions
|
@ -1,6 +1,5 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
$env:WIN_COMPUTER_NAME = "DerGeret";
|
$env:WIN_COMPUTER_NAME = "DerGeret";
|
||||||
$env:SETUP_SCRIPT_NAME = "$PSScriptRoot/Restore.ps1";
|
|
||||||
$env:CONFIG_NAME = $env:WIN_COMPUTER_NAME;
|
$env:CONFIG_NAME = $env:WIN_COMPUTER_NAME;
|
||||||
|
|
||||||
. "$PSScriptRoot/../../../../../scripts/Windows/OS/Setup.ps1";
|
. "$PSScriptRoot/../../../../../scripts/Windows/OS/Setup.ps1";
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
$env:WIN_COMPUTER_NAME ??= "win11";
|
$env:WIN_COMPUTER_NAME ??= "win11";
|
||||||
$env:SETUP_SCRIPT_NAME ??= "$PSScriptRoot/Install.ps1";
|
|
||||||
$env:CONFIG_MODULE ??= "$PSScriptRoot/../config.nix";
|
$env:CONFIG_MODULE ??= "$PSScriptRoot/../config.nix";
|
||||||
|
|
||||||
. "$PSScriptRoot/../../../../../scripts/Windows/OS/Setup.ps1";
|
. "$PSScriptRoot/../../../../../scripts/Windows/OS/Setup.ps1";
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
$env:SETUP_SCRIPT_NAME ??= "$PSScriptRoot/Install.ps1";
|
|
||||||
|
|
||||||
. "$PSScriptRoot/../../../../Generic/Windows/Setup.ps1";
|
. "$PSScriptRoot/../../../../Generic/Windows/Setup.ps1";
|
||||||
|
|
3
scripts/Windows/OS/Install.ps1
Normal file
3
scripts/Windows/OS/Install.ps1
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/pwsh
|
||||||
|
. "$PSScriptRoot/Manage.ps1";
|
||||||
|
Start-WindowsInstallation;
|
|
@ -8,7 +8,7 @@ function Start-Setup {
|
||||||
$Global:ErrorActionPreference = "Inquire";
|
$Global:ErrorActionPreference = "Inquire";
|
||||||
$env:CONFIG_NAME ??= $ConfigurationName;
|
$env:CONFIG_NAME ??= $ConfigurationName;
|
||||||
$null = $env:WIN_COMPUTER_NAME;
|
$null = $env:WIN_COMPUTER_NAME;
|
||||||
$null = $env:SETUP_SCRIPT_NAME;
|
$null = $env:SETUP_SCRIPT_NAME ??= "$PSScriptRoot/Install.ps1";
|
||||||
$env:WSLENV = "CONFIG_NAME";
|
$env:WSLENV = "CONFIG_NAME";
|
||||||
|
|
||||||
$valhallaConfig = ConvertFrom-Json (Get-Content "$PSScriptRoot/../../../.config/$env:CONFIG_NAME.json");
|
$valhallaConfig = ConvertFrom-Json (Get-Content "$PSScriptRoot/../../../.config/$env:CONFIG_NAME.json");
|
||||||
|
|
Loading…
Reference in a new issue