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

nh os repl: init #171

Merged
merged 4 commits into from
Nov 15, 2024
Merged

nh os repl: init #171

merged 4 commits into from
Nov 15, 2024

Conversation

NotAShelf
Copy link
Contributor

@NotAShelf NotAShelf commented Nov 14, 2024

Adds a generic implementation of a nix repl wrapper, and a repl subcommand for nh os which puts the user into a repl with the active nixosConfiguration. Equivalent of nix repl .#nixosConfiguration.$HOSTNAME or entering nix repl and running :lf nixosConfigurations.<hostname>.

home repl is not implemented because 1. I conceptually disagree with standalone home-manager and 2. it would depend on functions defined in home.rs, which I would rather not pass around haphazardly - might be implemented properly when there is a more standard library/utility module in nh's codebase.

@NotAShelf
Copy link
Contributor Author

Sorta fixes #66

src/nixos.rs Outdated Show resolved Hide resolved
@NotAShelf NotAShelf requested a review from viperML November 15, 2024 08:29
@NotAShelf NotAShelf marked this pull request as ready for review November 15, 2024 08:56
@NotAShelf
Copy link
Contributor Author

I should probably bump version in Cargo.toml

@viperML viperML merged commit cd04990 into viperML:master Nov 15, 2024
1 check passed
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