Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specific Env Vars and Edit Command #142

Closed
wants to merge 7 commits into from

Conversation

Burtannia
Copy link

Description

Specific Env Vars

  1. Introduce two new environment variables / arguments: NH_OS_FLAKE and NH_HOME_FLAKE to set the flake for the NixOS and Home Manager configs respectively.
  2. Remove the FLAKE argument since it's no longer needed and, as others have pointed out FLAKE is not a very specific env var #88, it's not very specific. Note that a fallback is in place to FLAKE if NH_..._FLAKE is not set so as to make the change a bit more backwards compatible.
  3. Fallback to current directory if neither NH_..._FLAKE nor FLAKE is set.

Edit Command

Running nh <os | home> edit uses the aforementioned env vars to open the default editor (as specified by EDITOR) in the flake directory.

@viperML
Copy link
Owner

viperML commented Sep 5, 2024

I will implement this in #151

@viperML viperML closed this Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants