Comments (13)
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/disko-install-how-to-to-pass-flake-self-using-specialargs/43920/6
from disko.
Does it work if you replace self
with ${./.}
?
from disko.
@Mic92
The problem seem to be not with ${self}
, but with the dependencies
block:
- if I avoid using
self
there, it works:dependencies = [ pkgs.stdenv.drvPath ];
- but only if I use
self
once, it doesn't:dependencies = [ pkgs.stdenv.drvPath self.nixosConfigurations.i7.config.system.build.toplevel ];
Thoughts?
from disko.
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/infinite-recursion-encountered-by-making-module-configurable/23508/11
from disko.
Does it work if you replace
self
with${./.}
?
Where should I do that?
from disko.
So I tried to insert the Example module for a NixOS installer to the flake itself, so it got direct access to the self
flake variable and no specialArgs = {inherit self;};
trick is needed.
Still, the same infinite recursion error.
@Mic92 how it worked on your side, did you test the code?
from disko.
So I debugged it even more and apparently I was wrong about the reason is related to "self".
The problem seems to be in this line instead:
self.nixosConfigurations.your-machine.config.system.build.toplevel
, if I remove it the error goes away.
At the same time, the next line is all OK:
self.nixosConfigurations.your-machine.config.system.build.diskoScript
Any ideas what can be wrong with the toplevel
?
from disko.
Do you have a complete example that leads to the said infinite recursion?
from disko.
Related Issues (20)
- Using disko to generate raspberry pi sd card images
- Random boot failues due to partition confusion because disko now relies on `by-partlabel` HOT 8
- ZFS Features Support: Dataset property inheritance HOT 2
- Converting an existing system to use disko? HOT 5
- GRUB Mirrored boot entries with disko HOT 2
- zpool create error: one or more vdevs refer to the same device HOT 1
- How to test luks setup with `--vm-test` HOT 5
- device already has a partition, skipping creating zpool zroot HOT 1
- Can't automount ZFS dataset without using mountpoint="legacy" HOT 1
- `disko-install` should error out immediately if it was invoked without `sudo` HOT 1
- [DOC] add demo/example config for subvolumes on btrfs on lvm on luks
- Add docs for upgrade from legacy table to gpt HOT 4
- QUESTION: neededForBoot option HOT 2
- Random Boot failures due to failing to mount /usr/bin HOT 4
- Size range HOT 1
- encrypted swap and hibernation HOT 2
- Generate an .iso unattended install image HOT 17
- typo in the docs?
- how to to pass flake `self` using `specialArgs`? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from disko.