From 0e251673369a938d1797d40c7fe55997bedbd50d Mon Sep 17 00:00:00 2001
From: amesgen <amesgen@amesgen.de>
Date: Wed, 6 Nov 2024 01:58:59 +0100
Subject: [PATCH] nixos/keepassxc: stop using deprecated cli option

Addresses

    The -k option will be deprecated. Please use the --set-key-file option
    instead.

This isn't causing any problems _yet_, but it seems easy enough to fix it now
already.
---
 nixos/tests/keepassxc.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nixos/tests/keepassxc.nix b/nixos/tests/keepassxc.nix
index b1f2dc2f4d46..d487d87fbacb 100644
--- a/nixos/tests/keepassxc.nix
+++ b/nixos/tests/keepassxc.nix
@@ -46,7 +46,7 @@ import ./make-test-python.nix ({ pkgs, ...} :
         machine.wait_for_x()
 
     with subtest("Can create database and entry with CLI"):
-        ${aliceDo "keepassxc-cli db-create -k foo.keyfile foo.kdbx"}
+        ${aliceDo "keepassxc-cli db-create --set-key-file foo.keyfile foo.kdbx"}
         ${aliceDo "keepassxc-cli add --no-password -k foo.keyfile foo.kdbx bar"}
 
     with subtest("Ensure KeePassXC starts"):