Hi everyone,
I am quite new to NixOS, but I managed to get something up and working. I face a strange bug although I think I nearly replicated the setup I had on Arch where I did not encounter this issue. Some programs such as LazyGit, or Obsidian with the git plugin, are causing system freezes where I have to force the shutdown of the laptop. It happens as soon as the software is trying to fetch infos about the repository.
I see nothing in journalctl, at the time of the crash:
Jun 07 12:22:31 nixos systemd[2321]: Started kitty child process: 6086 launched by: 6071.
Jun 07 12:22:54 nixos systemd[2321]: Started GnuPG cryptographic agent and passphrase cache.
Jun 07 12:22:54 nixos gpg-agent[6412]: gpg-agent[6412]: WARNING: "--supervised" is a deprecated option
Jun 07 12:22:54 nixos gpg-agent[6412]: gpg-agent (GnuPG) 2.4.5 starting in supervised mode.
Jun 07 12:22:54 nixos gpg-agent[6412]: using fd 3 for ssh socket (/run/user/1000/gnupg/S.gpg-agent.ssh)
Jun 07 12:22:54 nixos gpg-agent[6412]: using fd 4 for std socket (/run/user/1000/gnupg/S.gpg-agent)
Jun 07 12:22:54 nixos gpg-agent[6412]: listening on: std=4 extra=-1 browser=-1 ssh=3
Jun 07 12:23:08 nixos systemd[2321]: kitty-5684-0.scope: Consumed 2.396s CPU time.
Jun 07 12:23:09 nixos systemd[2321]: Started kitty child process: 6484 launched by: 6471.
An example of LazyGit logs during a small freeze it caused:
Jun 7 12:34:18 |INFO| refreshing the following scopes in sync mode: files
Jun 7 12:34:18 |DEBU| using cache for key status.showUntrackedFiles
Jun 7 12:34:18 |INFO| refreshed merge conflicts in 10.229µs
Jun 7 12:34:18 |DEBU| RunCommand command="git status --untracked-files=all --porcelain -z"
Jun 7 12:34:18 |INFO| git status --untracked-files=all --porcelain -z (10.433872ms)
Jun 7 12:34:18 |INFO| refreshed files in 10.863244ms
Jun 7 12:34:18 |INFO| Refresh took 11.062536ms
Jun 7 12:34:18 |INFO| postRefreshUpdate for submodules took 9.919µs
Jun 7 12:34:18 |DEBU| RunCommand command="git -C /home/clementpoiret/Sync/Projects/Caminov/Fringuant/_fit diff --no-ext-diff --submodule --unified=3 --color=always -- .gitignore"
Jun 7 12:34:18 |INFO| postRefreshUpdate for files took 203.981µs
Sometimes freezes are so long I have to force the shutdown manually…
In case it might help, I use a Solokey to handle my ssh auth.
My config is rather simple for git: nixos-config/modules/home/git.nix at 1f48e244e99dacdcd6bb1694c1d822528732fa6e · clementpoiret/nixos-config · GitHub
I have no issues with ssh or git commands directly.
Do you guys have any idea? Thanks!