When running element-desktop on a graphical NixOS 25.05 system with desktopManager.xterm.enable = true or services.displayManager.defaultSession = "none+i3", I get the following error message:
Your system has an unsupported keyring meaning the database cannot be opened.
Electron's keyring detection did not find a supported backend. You can attempt to manually configure the backend by starting Element with a command-line argument, a one-time operation.
See https://www.electronjs.org/docs/latest/api/safe-storage#safestoragegetselectedstoragebackend-linux
The same config worked with NixOS 24.11 (e.g. rev 50ab793786d9de88ee30ec4e4c24fb4236fc2674).
How can i fix this?
Affected versions:
- NixOS 25.05
- Element Desktop: 1.11.110 (NixOS 25.05), 1.11.112 (NixOS unstable)
Note that Element Desktop 1.11.110 works on NixOS 24.11
Reproduce
vm.nix:
((builtins.getFlake "github:NixOS/nixpkgs/8cd5ce828d5d1d16feff37340171a98fc3bf6526").lib.nixosSystem {
system = "x86_64-linux";
modules = [
({ config, pkgs, ... }: {
environment.systemPackages = [ pkgs.element-desktop ];
users.users.a = {
isNormalUser = true;
password = "a";
};
services = {
xserver = {
enable = true;
desktopManager.xterm.enable = true;
};
displayManager.autoLogin = {
enable = true;
user = "a";
};
};
system.stateVersion = config.system.nixos.release;
})
];
}).config.system.build.vm
vm=$(nix build --no-link --print-out-paths -f vm.nix)
export NIX_DISK_IMAGE=/tmp/vmimg; rm -f $NIX_DISK_IMAGE; $vm/bin/run-*-vm
After booting, run element-desktop in xterm.