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

status of nix build? (or how to use Daedalus on NixOS?) #3267

Open
colemickens opened this issue Dec 29, 2024 · 4 comments
Open

status of nix build? (or how to use Daedalus on NixOS?) #3267

colemickens opened this issue Dec 29, 2024 · 4 comments

Comments

@colemickens
Copy link

I thought using the nix flake would be a good way to get Daedalus running on a NixOS system.

However:

  • the nixpkgs is quite, quite old
  • nothing seems to be cached in the provided cache

I'm not overriding any inputs, so the lack of cache hit was quite surprising.

Is this... a good way to use Daedauls on NixOS? Is there a better option?

Thanks!

@colemickens
Copy link
Author

It's a more than a bit frightening to think I'm using such old nixpkgs for a crypto wallet...

@arianvp
Copy link

arianvp commented Dec 29, 2024

Wow GitHub really has issues with spam huh.

@michalrus
Copy link
Member

michalrus commented Jan 2, 2025

Hey @colemickens, this flake.nix fragment:

daedalus/flake.nix

Lines 57 to 61 in f02475f

nixConfig = {
extra-substituters = ["https://cache.iog.io"];
extra-trusted-public-keys = ["hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="];
allow-import-from-derivation = "true";
};

… will not be used, unless you're in trusted-users and allow it explicitly. But that is a security hole (giving your user root privileges), so I would recommend to just add IOG cache to your global system configuration. Remember to restart the Nix daemon, but that's more for macOS users, as it happens automatically on Linux.

As for the old Nixpkgs, they're used mostly for building, the actual runtime dependencies (including Electron version) are specified in package.json and, more specifically, yarn.lock. Both cardano-wallet and cardano-node have their own Nixpkgs pins, and we don’t override these. But it's a good catch, I will update them, perhaps pinning to what cardano-node uses. Thanks!

@colemickens
Copy link
Author

I did allow the cache and the trusted key. Ultimately I used another wallet to do the consolidation I needed to do. I likely won't be able to weight in much more. But I appreciate the reply and consideration. Cheers!

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

5 participants
@colemickens @arianvp @michalrus and others