Skip to content

Commit

Permalink
fix cardano-wallet nixos module (#4869)
Browse files Browse the repository at this point in the history
This fixes #4522.

The option `self.defaultPackage.${pkgs.system}` does not contain a
`cardano-node` package, it only contains a `cardano-wallet` package.

Currently users are required to override the
`services.cardano-node.package` option manually by pointing to a
compatible cardano-node package.

So we point to the correct `cardano-node` compatible with
`cardano-wallet` by using `self.packages.${pkgs.system}.cardano-node`
instead.
  • Loading branch information
abailly authored Dec 9, 2024
2 parents f0377bf + cceca56 commit 3905529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@

nixosModule = { pkgs, lib, ... }: {
imports = [ ./nix/nixos/cardano-wallet-service.nix ];
services.cardano-node.package = lib.mkDefault self.defaultPackage.${pkgs.system};
services.cardano-node.package = lib.mkDefault self.packages.${pkgs.system}.cardano-node;
};
nixosModules.cardano-wallet = nixosModule;

Expand Down

0 comments on commit 3905529

Please sign in to comment.