Open Cosmius opened 8 months ago
Strange you didn't have a /etc/machine-id
.
systemd
uses per-machine identifier — {manpage}machine-id(5)
— which must be unique and persistent; otherwise, the system journal may fail to list earlier boots, etc.
systemd
generates a randommachine-id(5)
during boot if it does not already exist, and persists it in/etc/machine-id
. As such, it suffices to make that file persistent.
Are you using a impermance setup by chance?
Strange you didn't have a
/etc/machine-id
.
@willbush sorry for missing OS in title. I use nix
on macOS. macOS does not have such items.
No my fault! I should have paid closer attention to the description.
similar issue from searching:
I'm guessing macos doesn't use dbus?
Do you have cat /var/lib/dbus/machine-id
?
Sorry I'm not super experinced! Just randomly thought I'd try to help.
edit:
another random thought:
what happens if you try to launch GSETTINGS_BACKEND=keyfile virt-manager
virt-manager without it using dconf?
Thanks a lot! It worked with GSETTINGS_BACKEND=keyfile
! I don't know much about gnome stuffs.
And you are right, macOS does not have dbus running. But it seems the previous build did not use this approach, since the preferences of old build are not loaded.🤔 Since it worked magically(?) before, I think there might be a solution other than import the whole thing of older version.
Same issue here. And GSETTINGS_BACKEND=keyfile
saved my day.
The program could be wrapped with GSETTINGS_BACKEND=keyfile
on darwin
Describe the bug
virt-manager
cannot save preference since nixpkgs-23.11-darwin on macOSSteps To Reproduce
Steps to reproduce the behaviour:
https://nixos.org/channels/nixpkgs-23.11-darwin
nix-shell -p virt-manager
virt-manager --no-fork
It says
and all the preferences, like URI, are never saved.
When I create a dummy
/etc/machine-id
it says,The package worked perfectly with
https://nixos.org/channels/nixpkgs-23.05-darwin
. And FYI, the package failed to build withnixpkgs-unstable
Expected behaviour
virt-manager
should save the preference.Additional context
I tried to compare this file
https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/virtualization/virt-manager/default.nix
from different nixpkgs versions, but found nothing interesting.As a workaround, I use the following expression instead of
virt-manager
in my home manager configuration.It seems that it could be a bug of glib or dconf etc, but I am afraid that I know too little of them.
Notify maintainers
@qknight @offline @fpletz @globin
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.