-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: programs.bat
causes activation to fail
#4826
Comments
Can confirm this issue. But running bat cache --build on the cli does work, so I don't understand why it fails. |
I can't reproduce it |
This happens on latest unstable. Did you try with unstable too? |
This issue happens to break the post-activation steps of Strangely enough, on my particular system, I think the error mostly occurs when there’s a system-wide $ cat /etc/systemd/system/home-manager-diti.service
[Unit]
After=nix-daemon.socket
Before=systemd-user-sessions.service
Description=Home Manager environment for diti
RequiresMountsFor=/home/diti
Wants=nix-daemon.socket
[Service]
Environment="LOCALE_ARCHIVE=/nix/store/hsa779ydi29sp4q2w7plgzhxmiv1n8qb-glibc-locales-2.38-27/lib/locale/locale-archive"
Environment="PATH=/nix/store/5idwbbv23b6vnqdicx97s3hsgrwwnj7j-coreutils-9.4/bin:/nix/store/4ajik70nplhkb8ndn3gqh7v0b09hmvg9-findutils-4.9.0/bin:/nix/store/6i00hdmzlj56qy500p5gb5v88wfj6nhg-gnugrep-3.11/bin:/nix/store/9zial3lqry9f7rsw31r7vs5p1mnb7lan-gnused-4.9/bin:/nix/store/3zwz5ywmrrh8m6nqzgw3glq6pilxcphq-systemd-255.2/bin:/nix/store/5idwbbv23b6vnqdicx97s3hsgrwwnj7j-coreutils-9.4/sbin:/nix/store/4ajik70nplhkb8ndn3gqh7v0b09hmvg9-findutils-4.9.0/sbin:/nix/store/6i00hdmzlj56qy500p5gb5v88wfj6nhg-gnugrep-3.11/sbin:/nix/store/9zial3lqry9f7rsw31r7vs5p1mnb7lan-gnused-4.9/sbin:/nix/store/3zwz5ywmrrh8m6nqzgw3glq6pilxcphq-systemd-255.2/sbin"
Environment="TZDIR=/nix/store/g4bk1chlkfw18f6zkljygxp3r4yi8m48-tzdata-2023d/share/zoneinfo"
X-StopIfChanged=false
ExecStart=/nix/store/cv17kn1r2d7im3bjkj4qca1ig0myn3s2-hm-setup-env /nix/store/6irsm5c1rcf24vl4f7diic262zz0vhhz-home-manager-generation
RemainAfterExit=yes
SyslogIdentifier=hm-activate-diti
TimeoutStartSec=5m
Type=oneshot
User=diti
[Install]
WantedBy=multi-user.target $ /nix/store/cv17kn1r2d7im3bjkj4qca1ig0myn3s2-hm-setup-env /nix/store/6irsm5c1rcf24vl4f7diic262zz0vhhz-home-manager-generation
Starting Home Manager activation
Activating checkFilesChanged
Activating checkLinkTargets
Activating writeBoundary
Activating createGpgHomedir
Activating linkGeneration
Cleaning up orphan links from /home/diti
No change so reusing latest profile generation 51
Creating home file links in /home/diti
Activating batCache
error: unexpected argument '--build' found
tip: to pass '--build' as a value, use '-- --build'
Usage: bat <FILE>...
For more information, try '--help'. |
hmm, I do not have |
I've just started getting this with standalone home-manager, also tracking unstable. |
Could somebody who has this issue check their activation script. It should have a line
Could you check the version of bat, it should be included in the path or run the command with Also please run |
I think I've figured out what's going on in my case: I have a directory When
After removing Edit: this is a known issue with bat: sharkdp/bat#1726 |
Wow, that's pretty wild. Thanks for figuring it out @mcwitt 🙂 |
Are you following the right branch?
Is there an existing issue for this?
Issue description
With
programs.bat.enable = true
,nixos-rebuild switch --flake .
fails during activation with the following error:Maintainer CC
@lovesegfault
System information
The text was updated successfully, but these errors were encountered: