`flake.nix` (or; remove need for `--impure` flag on nixos install)
See original GitHub issueI’m running nixos, and I can’t install daedalus in pure mode. I need to run --impure
flag on nixos-rebuild switch
, or else I get the following bug
building the system configuration...
error: attribute 'currentSystem' missing
at /nix/store/77yavamh2axnx8znz6dwbpjwmgg96bhw-iohk-nix-src/default.nix:2:12:
1| { config ? {}
2| , system ? builtins.currentSystem
| ^
3| , crossSystem ? null
… while evaluating the attribute 'system'
at /nix/store/77yavamh2axnx8znz6dwbpjwmgg96bhw-iohk-nix-src/default.nix:47:20:
46| overlays = extraOverlays;
47| inherit system crossSystem;
| ^
48| } // args);
… while evaluating the attribute 'system'
at /nix/store/d5hgy42a104xh2ajkrfy5i3gl9425v45-nixpkgs-src/pkgs/top-level/impure.nix:18:19:
17| # (build, in GNU Autotools parlance) platform.
18| localSystem ? { system = args.system or builtins.currentSystem; }
| ^
19|
… while evaluating 'splitString'
at /nix/store/d5hgy42a104xh2ajkrfy5i3gl9425v45-nixpkgs-src/lib/strings.nix:440:23:
439| */
440| splitString = _sep: _s:
| ^
441| let
… from call site
at /nix/store/d5hgy42a104xh2ajkrfy5i3gl9425v45-nixpkgs-src/lib/systems/parse.nix:472:69:
471|
472| mkSystemFromString = s: mkSystemFromSkeleton (mkSkeletonFromList (lib.splitString "-" s));
| ^
473|
… while evaluating 'mkSkeletonFromList'
....
.....
...
My install looks like this, with home-manager
:
let
daedalus = (import (pkgs.fetchFromGitHub {
owner = "input-output-hk";
repo = "daedalus";
rev = "478ec558705cebfc660b7b4ebba3aa20c6bfb6b6";
sha256 = "+7t3nfe+J9iZZ1LiPP0m8c0lvl09HeTOgfQ/OcUWiog=";
}) { }).daedalus; in
...
home.packages = [ ... daedalus ... ]
...
I think a flake would be a better way to install daedalus.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Flakes - NixOS Wiki
Flakes replace the nix-channels command and things like ad-hoc invocations of builtins.fetchgit - no more worrying about keeping your channels in sync, no...
Read more >NixOS
Commands for upgrading or troubleshooting your Nix installation: ... These have the form flakeref[ # attrpath], where flakeref is a flake reference and ......
Read more >NixOS Setup Guide - Configuration / Home-Manager / Flakes
This course covers: - NixOS (configuration. nix and ... Depending on your system, other kernel modules are needed for the system.
Read more >Nix Flakes - zimbatm
This is needed to expose the Nix 2.0 CLI and flakes support that are hidden behind feature-flags. Finally, if the Nix installation is...
Read more >Nix Flakes, Part 3: Managing NixOS systems - Tweag
It's easy to enable a package or system service in a NixOS configuration if it is part of the nixpkgs repository: you just...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @quinn-dougherty we only give official support by using the signed installers from www.daedaluswallet.io
But I am sure @michalrus could give you an answer here 🙏
Oh, so there is no
name
for thedefaultPackage
on that branch?Interesting 😮 Thanks! 🙇 I’ll add it 📝