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

Running home-manager activation inside a nix build sandbox #1717

Open
expipiplus1 opened this issue Jan 12, 2021 · 10 comments
Open

Running home-manager activation inside a nix build sandbox #1717

expipiplus1 opened this issue Jan 12, 2021 · 10 comments
Labels
feature request pinned Prevent marking as stale

Comments

@expipiplus1
Copy link
Contributor

It would be great to be able to run the activation script from inside a nix-build sandbox.

This would be useful for running tests for one's dotfiles as I do here https://github.com/expipiplus1/dotfiles/tree/db638e7873fc10ad5e9a990f0612d0acbdd9d4c1/tests

I currently have something like this working, but it feels a little hacky in places: https://github.com/expipiplus1/dotfiles/blob/db638e7873fc10ad5e9a990f0612d0acbdd9d4c1/tests/home-test.nix#L69-L91

Hopefully it would be possible to make the activation script 'just work' inside such an environment (after setting HOME).

@stale
Copy link

stale bot commented Apr 28, 2021

Thank you for your contribution! I marked this issue as stale due to inactivity. If this remains inactive for another 7 days, I will close this issue. Please read the relevant sections below before commenting.

If you are the original author of the issue

  • If this is resolved, please consider closing it so that the maintainers know not to focus on this.
  • If this might still be an issue, but you are not interested in promoting its resolution, please consider closing it while encouraging others to take over and reopen an issue if they care enough.
  • If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.

If you are not the original author of the issue

  • If you are also experiencing this issue, please add details of your situation to help with the debugging process.
  • If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.

Memorandum on closing issues

If you have nothing of substance to add, please refrain from commenting and allow the bot close the issue. Also, don't be afraid to manually close an issue, even if it holds valuable information.

Closed issues stay in the system for people to search, read, cross-reference, or even reopen--nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort.

@stale stale bot added the status: stale label Apr 28, 2021
@expipiplus1
Copy link
Contributor Author

expipiplus1 commented Apr 28, 2021 via email

@stale stale bot removed the status: stale label Apr 28, 2021
@expipiplus1
Copy link
Contributor Author

hmm, had a quick look but it seems a little tricky to fit this kind of meta test neatly into nmt. What are the options here?

@stale
Copy link

stale bot commented Sep 7, 2021

Thank you for your contribution! I marked this issue as stale due to inactivity. If this remains inactive for another 7 days, I will close this issue. Please read the relevant sections below before commenting.

If you are the original author of the issue

  • If this is resolved, please consider closing it so that the maintainers know not to focus on this.
  • If this might still be an issue, but you are not interested in promoting its resolution, please consider closing it while encouraging others to take over and reopen an issue if they care enough.
  • If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.

If you are not the original author of the issue

  • If you are also experiencing this issue, please add details of your situation to help with the debugging process.
  • If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.

Memorandum on closing issues

If you have nothing of substance to add, please refrain from commenting and allow the bot close the issue. Also, don't be afraid to manually close an issue, even if it holds valuable information.

Closed issues stay in the system for people to search, read, cross-reference, or even reopen--nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort.

@stale stale bot added the status: stale label Sep 7, 2021
@expipiplus1
Copy link
Contributor Author

still important.

@stale stale bot removed the status: stale label Sep 7, 2021
@stale
Copy link

stale bot commented Dec 6, 2021

Thank you for your contribution! I marked this issue as stale due to inactivity. If this remains inactive for another 7 days, I will close this issue. Please read the relevant sections below before commenting.

If you are the original author of the issue

  • If this is resolved, please consider closing it so that the maintainers know not to focus on this.
  • If this might still be an issue, but you are not interested in promoting its resolution, please consider closing it while encouraging others to take over and reopen an issue if they care enough.
  • If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.

If you are not the original author of the issue

  • If you are also experiencing this issue, please add details of your situation to help with the debugging process.
  • If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.

Memorandum on closing issues

If you have nothing of substance to add, please refrain from commenting and allow the bot close the issue. Also, don't be afraid to manually close an issue, even if it holds valuable information.

Closed issues stay in the system for people to search, read, cross-reference, or even reopen--nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort.

@stale stale bot added the status: stale label Dec 6, 2021
@expipiplus1
Copy link
Contributor Author

expipiplus1 commented Dec 7, 2021 via email

@stale stale bot removed the status: stale label Dec 7, 2021
@rycee rycee added the pinned Prevent marking as stale label Dec 7, 2021
@rycee
Copy link
Member

rycee commented Dec 7, 2021

Agreed, I've been wanting this for the HM test suite as well. Sooner or later I'll get it fixed 🙂

@hab25
Copy link
Contributor

hab25 commented Jun 11, 2023

I believe this would be very useful in lowering the amount of HM bugs, as well as bugs in users' own configuration.

@hab25
Copy link
Contributor

hab25 commented Jan 20, 2024

Maybe this should, instead of being a nix build sandbox test, be a VM test implemented as a very light wrapper around https://nixos.org/manual/nixpkgs/stable/#tester-runNixOSTest . AFAICT this would be superior in all regards except performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request pinned Prevent marking as stale
Projects
None yet
Development

No branches or pull requests

4 participants