Closed different-name closed 2 weeks ago
Though I am not sure how I'd access my persistence config from a packaged command :thinking: It would probably have to be a configuration module that itself creates a command, nh does this so I should look into that
nh does this so I should look into that
It's a regular package that reads an environmental variable
The shebang I am using
#! /usr/bin/env nix-shell
#! nix-shell -i /bin/sh -p findutils
Doesn't seem to use the system environmental variables The environmental variables are also only going to update in a new session I could look into building the script when I build my configuration, and hard coding the paths into it, but I'm not sure there's a clean way to do that with a module or package
I have opened a new branch with my unfinished changes https://github.com/Different-Name/nix-files/commit/794a3fcbefb74381708fcd53ae3ca082990299cd
Closed in favour of https://github.com/Different-Name/nix-files/issues/54
I should package the helper tools as a proper command, instead of an alias I can then stop suppressing errors and allow running as super user to access directories This will also remove the need to switch to another terminal