mirror of
https://codeberg.org/spire/nix.git
synced 2026-08-02 12:25:00 +02:00
12 lines
259 B
Nix
12 lines
259 B
Nix
{
|
|
lib,
|
|
cfg,
|
|
gamedir,
|
|
name,
|
|
writeTextDir,
|
|
}: let
|
|
inherit (lib) mapAttrsToList concatStringsSep;
|
|
lines = mapAttrsToList (key: value: ''${key} "${value}"'') cfg;
|
|
text = concatStringsSep "\n" lines;
|
|
in
|
|
writeTextDir "${gamedir}/cfg/${name}" text
|