From 849491e33212c12e7601b096847ff0f6a4db1d0b Mon Sep 17 00:00:00 2001 From: alexion Date: Tue, 20 Oct 2026 23:39:29 -0400 Subject: [PATCH] refactor(romm): inline generated configuration --- configs/nixos/modules/services/romm.nix | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/configs/nixos/modules/services/romm.nix b/configs/nixos/modules/services/romm.nix index ee2de32..1aff3b7 100644 --- a/configs/nixos/modules/services/romm.nix +++ b/configs/nixos/modules/services/romm.nix @@ -6,13 +6,6 @@ }: 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 = { @@ -48,9 +41,16 @@ in inherit (cfg) environmentFile; }; - systemd.tmpfiles.settings."10-romm"."${config.services.romm.dataDir}/config/config.yml"."L+" = { - argument = toString rommConfig; - }; + systemd.tmpfiles.settings."10-romm"."${config.services.romm.dataDir}/config/config.yml"."L+".argument = + toString ( + (pkgs.formats.yaml { }).generate "romm-config.yml" { + emulatorjs.auto_save_sync = false; + filesystem.structure = { + default = "roms/{platform}/{game}"; + firmware = "bios/{platform}"; + }; + } + ); users.users = { romm.uid = config.registry."stable-uid".${config.networking.hostName}.romm;