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

Initialize a git repo for nixconfig #2

Open
srid opened this issue Sep 21, 2024 · 1 comment
Open

Initialize a git repo for nixconfig #2

srid opened this issue Sep 21, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@srid
Copy link
Collaborator

srid commented Sep 21, 2024

nixone/setup.sh

Lines 16 to 21 in 6c3996c

mkdir -p ~/nixconfig && cd ~/nixconfig
nix --accept-flake-config run github:juspay/omnix -- \
init github:juspay/nix-dev-home -o . \
--non-interactive \
--params '{"username":"'$(whoami)'", "git-name":"'$(id -F)'", "git-email":"'$(whoami)'@juspay.in", "neovim": true, "github-ci": false}'
nix run

After doing a nix run successfully, initialize a git repo using git init && git add . && git commit -m Init. This will be helpful to track config changes in the future, and to be able to revert recent changes.

@srid srid added the enhancement New feature or request label Sep 21, 2024
@srid
Copy link
Collaborator Author

srid commented Sep 21, 2024

Note: we should try to use the home-manager installed git for this, not macOS's git (which is not fully installed by default)

@srid srid added the good first issue Good for newcomers label Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant