Skip to content

Commit

Permalink
nixos/evremap: fix toml config generation
Browse files Browse the repository at this point in the history
filter out attrsets with a `null` value as toml doesn't support it
  • Loading branch information
pixL404 committed Dec 7, 2024
1 parent d7ad16e commit d22eeb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/misc/evremap.nix
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ in
description = "evremap - keyboard input remapper";
wantedBy = [ "multi-user.target" ];

script = "${lib.getExe pkgs.evremap} remap ${format.generate "evremap.toml" cfg.settings}";
script = "${lib.getExe pkgs.evremap} remap ${format.generate "evremap.toml" (lib.attrsets.filterAttrs (n: v: v != null) cfg.settings)}";

serviceConfig = {
DynamicUser = true;
Expand Down

0 comments on commit d22eeb2

Please sign in to comment.