gpt4all: properly handle newlines in system prompt

This commit is contained in:
2024-09-20 17:31:17 -04:00
parent e3e3036c06
commit c0f8f7617b
4 changed files with 16 additions and 16 deletions

View File

@@ -111,17 +111,15 @@
security.pam.services.swaylock = { };
system.activationScripts = {
"secureboot-keys".text =
let
secureboot_path = "/etc/secureboot";
in
''
#!/bin/sh
rm -fr ${secureboot_path}
rm -fr ${secureboot_path} || true
mkdir -p ${secureboot_path}
${pkgs.gnutar}/bin/tar xf /etc/nixos/secrets/secureboot.tar -C ${secureboot_path}
'';
};
}