-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Empty infos on NixOS #752
Comments
How did you install Neofetch? It can't find it's default config. |
|
The problem is that Neofetch can't find it's config file or a valid user config file.
|
Your config file is either in This was a known issue and has been fixed in d1fa88b. |
Update to the latest release and the issue should resolve itself. |
Adding this in
Also in release 3.2.0 it is not fixed when built from default.nix in nixpkgs. |
/etc/neofetch/config does not exist And, i can't apply the fix of dawidd since the neofetch binary is read-only on NixOS |
Yes. One way is: you can fork neofetch and edit, then build nix package using official recipe from github after editing details leading to your fork and specific branch or just copy neofetch somewhere else where you have write permission (/home for example), edit and run this copy. EDIT: i've managed to do it, here is modified nix recipe (save it as with import <nixpkgs> {};
stdenv.mkDerivation rec {
name = "neofetch-${version}";
version = "nixos";
src = fetchFromGitHub {
owner = "dawidd6";
repo = "neofetch";
rev = version;
sha256 = "0rjh6fs9fs6jk4fjlwh5zg1i8fd80xjf5mmk4licvsdjbjaqdnhr";
};
patchPhase = ''
substituteInPlace ./neofetch \
--replace "/usr/share" "$out/share"
'';
dontBuild = true;
makeFlags = [
"DESTDIR=$(out)"
"PREFIX="
];
meta = with stdenv.lib; {
description = "A fast, highly customizable system info script";
homepage = https://github.com/dylanaraps/neofetch;
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ alibabzo ];
};
} It's fetching from my fork, you can see there a commit with fix described above. Well, i wanted to share, a package, but it seems like with nix package manager it is impossible to build one-file-package like deb or rpm, idk. EDIT2: I've checked it a little and it's working only if one have installed neofetch from official repo and one must start it with full path, because default is official. I also dunno why i'm getting this message trying to build neofetch with vanilla official recipe: |
I see what the issue is now, my bad. This will be fixed by #754 which removes the hard-coded paths from inside Neofetch. |
Description
On my NixOS, running Neofetch displays the ASCII Art without any infos on the side
Neofetch version
Neofetch 3.0.1
Screenshot
Config file
Not touched (just installed neofetch)
Verbose log
https://gist.github.com/Litarvan/f3e8d0c81a3ddd7f5d33f0853c6b064d
The text was updated successfully, but these errors were encountered: