From d22eeb20ea4c7a6561682a9757c6184870ab5020 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 7 Dec 2024 03:41:35 +0100 Subject: [PATCH] nixos/evremap: fix toml config generation filter out attrsets with a `null` value as toml doesn't support it --- nixos/modules/services/misc/evremap.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/evremap.nix b/nixos/modules/services/misc/evremap.nix index 1dd7310d73d7d..3d8fcf51e5ef9 100644 --- a/nixos/modules/services/misc/evremap.nix +++ b/nixos/modules/services/misc/evremap.nix @@ -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;