feat(romm): package version 5.4.0

This commit is contained in:
2026-10-20 23:31:15 -04:00
parent cfa01fb550
commit 1c1420b8c0
3 changed files with 70 additions and 0 deletions

View File

@@ -1,10 +1,18 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.modules.services.romm;
rommConfig = (pkgs.formats.yaml { }).generate "romm-config.yml" {
emulatorjs.auto_save_sync = false;
filesystem.structure = {
default = "roms/{platform}/{game}";
firmware = "bios/{platform}";
};
};
in
{
options.modules.services.romm = {
@@ -31,13 +39,19 @@ in
services.romm = {
enable = true;
package = pkgs.alexion.romm;
group = "storage";
database.createLocally = true;
redis.createLocally = true;
watcher.enable = true;
extraEnvironment.ROM_CONVERTO_ENABLED = "false";
inherit (cfg) environmentFile;
};
systemd.tmpfiles.settings."10-romm"."${config.services.romm.dataDir}/config/config.yml"."L+" = {
argument = toString rommConfig;
};
users.users = {
romm.uid = config.registry."stable-uid".${config.networking.hostName}.romm;
redis-romm.uid = config.registry."stable-uid".${config.networking.hostName}."redis-romm";