You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure when exactly, but I think after the switch from git to libgit2 in ee36a44 was introduced to the default nix package on nixos-unstable, running sudo sudo nixos-rebuild switch (note the two sudo's) gives
building the system configuration...
fatal: detected dubious ownership in repository at '/keep/home/ikue/.config/home-manager/.git'
To add an exception for this directory, call:
git config --global --add safe.directory /keep/home/ikue/.config/home-manager/.git
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
warning: could not read HEAD ref from repo at '/keep/home/ikue/.config/home-manager', using 'master'
Note that the system is still successfully built from the master branch of my personal configuration to result.
Running sudo nixos-rebuild build (only one sudo) gives
building the system configuration...
as expected. Equivalently, the warnings occur if one is root (sudo su) and runs sudo nixos-rebuild build and does not occur if nixos-rebuild build is ran as root. I'm not sure why there is a difference between sudo sudo and sudo.
Steps To Reproduce
The quirks in my setup that could be contributing are
My NixOS configuration is based on flakes. This is why a git repo is read from at all.
I use impermanence, which is why my configuration is in /keep. This means my configuration is technically on a different filesystem than / (which is a tmpfs). That is, df -h shows
Describe the bug
Not sure when exactly, but I think after the switch from git to libgit2 in ee36a44 was introduced to the default
nix
package onnixos-unstable
, runningsudo sudo nixos-rebuild switch
(note the twosudo
's) givesNote that the system is still successfully built from the master branch of my personal configuration to
result
.Running
sudo nixos-rebuild build
(only one sudo) givesas expected. Equivalently, the warnings occur if one is root (
sudo su
) and runssudo nixos-rebuild build
and does not occur ifnixos-rebuild build
is ran as root. I'm not sure why there is a difference betweensudo sudo
andsudo
.Steps To Reproduce
The quirks in my setup that could be contributing are
/keep
. This means my configuration is technically on a different filesystem than/
(which is a tmpfs). That is,df -h
showsstat ~/.config/home-manager/.git
showsExpected behavior
No warnings.
nix-env --version
outputnix-env (Nix) 2.18.7
Additional context
Originally reported in NixOS/nixpkgs#325154 because I mistook it for an issue with
enableNg
.Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: