hlissner / dotfiles

And I say hey, what's going on?
https://youtu.be/ZZ5LpwO-An4
MIT License
1.62k stars 98 forks source link

Absolute paths in `xdg.configFile` #38

Closed musjj closed 1 year ago

musjj commented 1 year ago

What would you like to know?

How are you using absolute paths here?:

https://github.com/hlissner/dotfiles/blob/089f1a9da9018df9e5fc200c2d7bef70f4546026/modules/desktop/bspwm.nix#L51-L58

For me, I need to pass the absolute path string to config.lib.file.mkOutOfStoreSymlink first, or I would get this error:

error: access to absolute path '/absolute/path' is forbidden in pure eval mode (use '--impure' to override)

How are you working around this?

hlissner commented 1 year ago

By running all nix commands (where possible) in impure mode (for example).

musjj commented 1 year ago

I see, thanks for answering!