| 2 Aug 2021 |
colemickens 🏳️🌈 | Not sure that's any better than just ... setting it via convention and then hard-coding it. Either way you're making an un-enforceable assumption. | 04:12:51 |
colemickens 🏳️🌈 | Right? If you build that into the toplevel, nothing stops you from just... not cloning the scripts there and forgetting and putting it in the wrong place. | 04:13:56 |
Ivan Malison | couldn't i do something like builtins getEnv if I use --impure | 07:13:31 |
Ivan Malison | no i guess that wont work, because the file will already be in the store | 07:26:41 |
Las | In reply to @elonsroadster:matrix.org So I think I want to do something that would generally be regarded as a bad idea. I get that flakes are supposed to be as pure as possible, but I really want to be able to know what directory the flake is defined in, because I want to be able to talk about paths relative to that flake. The reason I want to do this is that I want to add to certain paths in my dotfiles to the global path environment variable. I realize that the nixy way to do this would be to actually add all of the relevant paths/scripts to the nix store and add them that way, but I don't want to have to explicitly rebuild to get new versions of all the scripts every time they are changed. You don't have to do this | 08:15:37 |
Las | That's a really bad solution honestly | 08:15:44 |
Las | You can just refer to the paths normally | 08:15:53 |
Las | With " | 08:15:58 |
Las | Just don't depend on them being where the flake is | 08:16:17 |