bug: LabWC use unusable option in HomeManager
Are you following the right branch?
- [x] My Nixpkgs and Home Manager versions are in sync
Is there an existing issue for this?
- [x] I have searched the existing issues
Issue description
After use option wayland.windowManager.labwc.enable home-manager require use options wayland.windowManager.labwc.autostart, wayland.windowManager.labwc.environment, wayland.windowManager.labwc.menu, wayland.windowManager.labwc.rc
But if I use my own file for example menu.xml and remove wayland.windowManager.labwc.menu from my home-manager config file, home-manager don't create new derivation and throw error:
Existing file '/home/xenon/.config/labwc/menu.xml' is in the way of '/nix/store/zwln1czfhhm49ax7244gj57878h2fw7c-home-manager-files/.config/labwc/menu.xml'
Please do one of the following:
- Move or remove the above files and try again.
- In standalone mode, use 'home-manager switch -b backup' to back up
files automatically.
- When used as a NixOS or nix-darwin module, set
'home-manager.backupFileExtension'
to, for example, 'backup' and rebuild.
Other modules don't require any option if I don"t use this option in home-manager config file.
I found this behaviour when I changed my file menu.xml manually because home-manager have bug #7236
Maintainer CC
@LesVu
System information
- system: `"x86_64-linux"`
- host os: `Linux 6.12.32, NixOS, 25.05 (Warbler), 25.05.803471.4792576cb003`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.28.3`
- channels(root): `"home-manager-24.11.tar.gz, nixos-25.05"`
- nixpkgs: `/nix/store/wgarwr2y1718k6vn82jw5jnh98h895j6-nixos-25.05/nixos`
Now I use home-manager without this option, but I rename my actual file menu.xml to menu2.xml and rebuild home-manager, and after rebuilding I deleted symlink from folder and rename menu2.xml backward. It's painful and may be not correct but it work for me =D
Hi @xenon-xe54 ! It seems the problem should now be gone since 6fa01d5. Also, it would be great if you set home-manager.backupFileExtension, since otherwise every time Home-Manager finds a file in its way it won't be able to replace it. Take my config as an example:
{
home-manager = {
inherit extraSpecialArgs;
useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "backup"; <-- You have to set this.
users.matteo = import ./home.nix;
}