bug: services.kanshi: attribute '"kanshi/config"' missing
bugtriage
### 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
I'm trying to build my configuration and found the following situation:
```
error:
… while calling the 'head' builtin
at /nix/store/fafnljsz5sckb1vzpns5dc2l6z4xkakm-source/lib/attrsets.nix:1719:13:
1718| if length values == 1 || pred here (elemAt values 1) (head values) then
1719| head values
| ^
1720| else
… while evaluating the attribute 'value'
at /nix/store/fafnljsz5sckb1vzpns5dc2l6z4xkakm-source/lib/modules.nix:1149:7:
1148| // {
1149| value = addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
1150| inherit (res.defsFinal') highestPrio;
(stack trace truncated; use '--show-trace' to show the full trace)
error: attribute '"kanshi/config"' missing
at /nix/store/6ml8k960pjkrbb0dp0v06iacfkr9jfj9-source/modules/services/kanshi.nix:367:40:
366| X-Reload-Triggers = lib.mkIf (cfg.settings != { }) [
367| "${config.xdg.configFile.${configPath}.source}"
| ^
368| ];
note: trace involved the following derivations:
derivation 'home-manager-generation'
derivation 'home-manager-files'
derivation 'kanshi.service'
```
This is based on the changes from https://github.com/nix-community/home-manager/pull/9583.
### Maintainer CC
No maintainers listed, so c.c. @benjamb as the author of the changes
### System information
```markdown
❯ nix-shell -p nix-info --run "nix-info -m"
fetching path input 'path:/nix/store/gx3lxb8dgifcimrgb0s00pfx69mab0sn-source'
- system: `"x86_64-linux"`
- host os: `Linux 6.18.33, NixOS, 26.11 (Zokor), 26.11.20260529.e9a7635`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Lix, like Nix) 2.96.0-dev-pre20260531-dev_003946f
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/bjorn/.config/nix/nix.conf:/nix/store/3w0p9xpd4q150gbwfppd364mrc7g76qc-cinnamon-settings-daemon-6.6.4/etc/xdg/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/bjorn/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/bjorn/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/bjorn/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/ig7j7ky4df4ar83r0cv560r9rj40qaqw-lix-2.96.0-dev-pre20260531-dev_003946f/share`
- nixpkgs: `/nix/store/gx3lxb8dgifcimrgb0s00pfx69mab0sn-source`
```
0 条评论