am2rlauncher: add module

This commit is contained in:
Aguirre Matteo
2025-10-05 14:55:36 -03:00
committed by Austin Horstman
parent 8b62404497
commit 87570dbc43
4 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" AutoUpdateAM2R="false" AutoUpdateLauncher="true" Language="English" MusicHQPC="false" MusicHQAndroid="false" MirrorIndex="0" ProfileIndex="null" CustomMirrorEnabled="false" CustomMirrorText="" ProfileDebugLog="true" Width="600" Height="600" IsMaximized="false" />

View File

@@ -0,0 +1,5 @@
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
am2rlauncher-settings = ./settings.nix;
}

View File

@@ -0,0 +1,12 @@
{
programs.am2rlauncher = {
enable = true;
config = ./config.xml;
};
nmt.script = ''
assertFileExists home-files/.config/AM2RLauncher/config.xml
assertFileContent home-files/.config/AM2RLauncher/config.xml \
${./config.xml}
'';
}