different-name / nix-files

My NixOS configuration files
GNU General Public License v3.0
9 stars 0 forks source link

fsd / fed rewrite #36

Closed different-name closed 3 months ago

different-name commented 4 months ago

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

different-name commented 4 months 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

different-name commented 4 months ago

nh does this so I should look into that

It's a regular package that reads an environmental variable

different-name commented 4 months ago

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

different-name commented 4 months ago

I have opened a new branch with my unfinished changes https://github.com/Different-Name/nix-files/commit/794a3fcbefb74381708fcd53ae3ca082990299cd

different-name commented 3 months ago

Closed in favour of https://github.com/Different-Name/nix-files/issues/54