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

[Command] Install on NixOS #832

Open
IvanChepurnyi opened this issue Jan 10, 2025 · 0 comments
Open

[Command] Install on NixOS #832

IvanChepurnyi opened this issue Jan 10, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@IvanChepurnyi
Copy link

IvanChepurnyi commented Jan 10, 2025

Version of Warden

in-dev

Operating System and Installation Method

NixOS 24.11.712431.cbd8ec4de446 (Vicuna) via Git

Describe the Bug

Given that the NixOS partition is read-only changes to /etc/ directories are prohibited, so sudo tee to /etc/ssh/ssh_config fails during installation.

Although I can solve it with a workaround by modifying my /etc/nixos/configuration.nix with:

    programs.ssh.extraConfig = ''
	## WARDEN START ##
	Host tunnel.warden.test
	HostName 127.0.0.1
	User user
	Port 2222
	IdentityFile ~/.warden/tunnel/ssh_key
	## WARDEN END ##
    '';

It does not sound like a good option for me.

Is there any specific reason why warden does not place it into ~/.ssh/config instead?

To Reproduce

  1. Execute recommended setup steps:
sudo mkdir /opt/warden
sudo chown $(whoami) /opt/warden
git clone -b main https://github.com/wardenenv/warden.git /opt/warden
echo 'export PATH="/opt/warden/bin:$PATH"' >> ~/.bashrc
PATH="/opt/warden/bin:$PATH"
warden svc up

Expected Behavior

No error messages are shown

@IvanChepurnyi IvanChepurnyi added the bug Something isn't working label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant