refactor(romm): inline generated configuration
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user