nixos/gamemode: use listsAsDuplicateKeys for settings
This allows settings multiple scripts in `.custom.start` and `.custom.end`, as Gamemode reads them back out into a list. This is slightly annoying, as *any* duplicate keys will appear multiple times, while gamemode will only accept the last one for most keys (clobbering previous ones). Ideally, it would be possible to only enable `listsAsDuplicateKeys` for scripts, but this does not seem to be possible in `pkgs.formats.ini`.
This commit is contained in:
parent
a28d979c00
commit
08831a7160
@ -2,7 +2,7 @@
|
||||
|
||||
let
|
||||
cfg = config.programs.gamemode;
|
||||
settingsFormat = pkgs.formats.ini { };
|
||||
settingsFormat = pkgs.formats.ini { listsAsDuplicateKeys = true; };
|
||||
configFile = settingsFormat.generate "gamemode.ini" cfg.settings;
|
||||
in
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user