Add requested application config declarations

This commit is contained in:
Dandaedre 2026-10-16 14:31:31 +02:00
parent 84a68e11c2
commit b5ea778736
8 changed files with 54 additions and 2 deletions

View File

@ -102,6 +102,7 @@ $settings = [ordered]@{
LOCALAPPDATA = $env:LOCALAPPDATA
USERPROFILE = $env:USERPROFILE
PROGRAMDATA = $env:PROGRAMDATA
SYSTEMROOT = $env:SYSTEMROOT
}
}
$settings | ConvertTo-Json -Depth 8 | Set-Content -LiteralPath (Join-Path $dataRoot 'settings.json') -Encoding UTF8

View File

@ -0,0 +1,4 @@
{
"schemaVersion": 1,
"values": []
}

View File

@ -0,0 +1,3 @@
; Nextcloud managed preference overlay.
; Add non-secret settings only. Never add account sections, auth tokens,
; passwords, client certificates, or machine-specific sync paths.

View File

@ -0,0 +1,4 @@
/*
* Ontime custom styling managed by Config Central.
* Add CSS overrides below. This file does not contain projects or application data.
*/

View File

@ -0,0 +1,2 @@
# Add managed entries as: IP-address hostname [additional-hostname ...]
# Comments and blank lines are ignored. Config Central owns only its marked block.

View File

@ -0,0 +1,3 @@
; XnView MP managed preference overlay.
; Add only the sections and keys that should be identical on every machine.
; Catalog databases, thumbnails, and other unlisted keys are left untouched.

View File

@ -9,5 +9,40 @@
{ "id": "XnSoft.XnViewMP", "source": "winget", "scope": "machine", "update": "latest" },
{ "id": "Nextcloud.NextcloudDesktop", "source": "winget", "scope": "machine", "update": "latest" }
],
"configs": []
"configs": [
{
"name": "mpc-hc-settings",
"source": "configs/mpc-hc/settings.json",
"target": "HKCU:\\Software\\MPC-HC\\MPC-HC",
"mode": "registry",
"requiresPackage": "clsid2.mpc-hc"
},
{
"name": "ontime-style",
"source": "configs/ontime/override.css",
"target": "%APPDATA%/Ontime/user/styles/override.css",
"mode": "copy",
"requiresPackage": "cpvalente.ontime"
},
{
"name": "xnviewmp-settings",
"source": "configs/xnviewmp/xnview.ini",
"target": "%APPDATA%/XnViewMP/xnview.ini",
"mode": "ini-overlay",
"requiresPackage": "XnSoft.XnViewMP"
},
{
"name": "nextcloud-settings",
"source": "configs/nextcloud/managed.ini",
"target": "%APPDATA%/Nextcloud/nextcloud.cfg",
"mode": "ini-overlay",
"requiresPackage": "Nextcloud.NextcloudDesktop"
},
{
"name": "windows-hosts",
"source": "configs/windows/hosts.entries",
"target": "%SYSTEMROOT%/System32/drivers/etc/hosts",
"mode": "hosts-block"
}
]
}

View File

@ -6,7 +6,7 @@ Describe 'Manifest resolution' {
It 'resolves the checked-in example in profile order' {
$result = Resolve-MachineManifest -RepositoryRoot "$PSScriptRoot/.." -Machine 'example-desktop'
$result.packages.Count | Should -Be 7
$result.configs.Count | Should -Be 2
$result.configs.Count | Should -Be 7
$result.packages[0].id | Should -Be 'Git.Git'
}