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

nix-deploy is unusable under non privileged user #24

Open
misuzu opened this issue Jan 7, 2020 · 0 comments
Open

nix-deploy is unusable under non privileged user #24

misuzu opened this issue Jan 7, 2020 · 0 comments

Comments

@misuzu
Copy link

misuzu commented Jan 7, 2020

$ nix-deploy system --to remote-server --path $(nix-build --no-out-link -A system deploy.nix)
Generating RSA private key, 2048 bit long modulus
........................+++++
.......................................................................................................................................................................................................+++++
e is 65537 (0x10001)
writing RSA key
[+] Downloading: /etc/nix/signing-key.sec
nix-deploy: /etc/nix/signing-key.sec: openBinaryFile: does not exist (No such file or directory)
$ ls /etc/nix
nix.conf
$ ssh remote-server ls /etc/nix
nix.conf
signing-key.pub
signing-key.sec
$ sudo nix-store --generate-binary-cache-key localhost /etc/nix/signing-key.sec /etc/nix/signing-key.pub
$ ls /etc/nix
nix.conf  signing-key.pub  signing-key.sec
$ nix-deploy system --to remote-server --path $(nix-build --no-out-link -A system deploy.nix)
[+] Downloading: /etc/nix/signing-key.sec
nix-deploy: /etc/nix/signing-key.sec: openBinaryFile: permission denied (Permission denied)
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

No branches or pull requests

1 participant