From e273c1a788dedec40b5d5a3ff3b6fdd552aefd16 Mon Sep 17 00:00:00 2001 From: RockWolf Date: Mon, 9 Feb 2026 21:34:53 +0100 Subject: [PATCH] nixos/nm-file-secret-agent: enable `trim` by default This is a very sensible default. Most users use editors that automatically add trailing newlines, and enabling `trim` by default saves them the effort of finding the root cause of invalid password errors themselves. --- nixos/modules/services/networking/nm-file-secret-agent.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/nm-file-secret-agent.nix b/nixos/modules/services/networking/nm-file-secret-agent.nix index f1cac3dd279d..4e36605b242d 100644 --- a/nixos/modules/services/networking/nm-file-secret-agent.nix +++ b/nixos/modules/services/networking/nm-file-secret-agent.nix @@ -112,7 +112,7 @@ in trim = lib.mkOption { description = "whether leading and trailing whitespace should be stripped from the files content before being passed to NetworkManager"; type = lib.types.nullOr lib.types.bool; - default = null; + default = true; }; }; }