Closed Dyf-Tfh closed 1 month ago
I guess that's a config issue again.
cp: cannot stat '/home/nicolas/printer_conf/avr.cfg': No such file or directory
Ohh... You probably use flakes and git, right?
Then stage the config.
No i only recently started nixos and i haven’t delved into flakes yet.
Sorry for the inconveniance but i don’t really understand what do you mean by staging the config.
Is this about the firmware config file ?
Sorry for the inconveniance but i don’t really understand what do you mean by staging the config.
Is this about the firmware config file ?
Oh, nvm, just remove "
from paths to configs.
Ok, removing quotes fix the problem, but is this a normal thing in nix ?
Like why is there a difference between quoted and unquoted paths, and how does it manages paths with spaces ?
I’m really sorry if this sound dumb, but i don’t understand a thing at this point.
Ok, removing quotes fix the problem, but is this a normal thing in nix ?
Like why is there a difference between quoted and unquoted paths, and how does it manages paths with spaces ?
I’m really sorry if this sound dumb, but i don’t understand a thing at this point.
If you give it as a string, you are basically asking to access "/home/blablabla"
at build time. At build time, your home is not accessible as build happens in a pretty isolated sandbox.
By giving it as path instead /home/blabla
you are "pretty much" asking nix to copy that particular path into store before starting a build, and replaces the requested path with a store path.
Oh, i see thank for the explanation. Definitely though nix would copy that path into the store in both cases.
Beginner mistake i guess.
Steps To Reproduce
Steps to reproduce the behavior: after adding this snippet to configuration.nix and sudo nixos-rebuild switch, the rebuild fail.
Build log
Additional context
Changing the permission of the avr.cfg build file to rw for all users/ group doesn’t change anything if it help here is the file :
Notify maintainers
@lovesegfault @zhaofengli @cab404
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.