-
Notifications
You must be signed in to change notification settings - Fork 107
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
All suites return "attribute missing" #282
Comments
We recently did quite a big refactoring in order to navigate the whole project into less choppy future waters. On behalf of the involved parties, I apologize for the troubles caused. Suites where such a "shallow" abstraction that, in order to provide a better overview of a particular devos environment, we decided to define them directly in Think of "table of content". Of course, they can be kept in their own file, but the suite's function signature has to mirror the files fed to profiles from now on. That is true for both subsystems, where suites are in use: Example following. Note, how the suite's function signature matches the folder names passed to profiles: that is (magic) by design. {
profiles = [ ./profiles ./users ];
suites = { profiles, users, ... }: with profiles; {
base = [ core users.nixos users.root ];
};
} Please let me know, if I can help you out in any other way. |
I'm pretty sure you can use |
@blaggacao Thanks for the detailed explanation. I actually like the changes you're implementing, that's why I pull them into my repo! I just think the documentation could have a little more information. I'll have a look at adding it.
If I try to use it this way: suites = { profiles, users, ... }: with profiles; rec {
[...]
}; I get:
|
Ohh that seems to be a different problem. It looks to be a module system infinite recursion error. That is usually unrelated to Generally it happens when you try to use a module argument in an
|
@ymarkus Can you also post your current suites stanza from the flake.nix — or a minimal example that reproduces the error? Just in case. It might help a little to find a solution quickly. |
I think I have found the error: my host looks like this: { hardware, suites, ... }:
{
imports = [
./whatever/hardware.nix
hardware.lenovo-thinkpad-x1-6th-gen
] ++ suites.mobileWS ++ suites.gaming ++ suites.virt;
...
} If I remove the {
nixos.hosts = mkMerge [
(devos.lib.importHosts ./hosts)
{
librem = {
channelName = "latest";
modules = [ hardware.purism-librem-13v3 ];
};
}
];
} it should rather be:
|
Thanks for your help and sorry to bother. As soon as the documentation is fixed, we can close this! Edit: And BTW, can we please remove the file |
Ok, thanks for the help everyone! |
After pulling the latest commits from the core branch, all my suites defined in
profiles/suites.nix
return an "attribute missing error".Current Behavior
hosts/whatever.nix
:trying to build it:
Possible Solution
There seems to be a
suites
definition indefault.nix
now, is that supposed to be used from now on?Then the documentation has to be updated!OK, it seems the documentation does say to use the namespaces for
nixos
andhome
, but the issue there is that you can't userec
and that makes it quite messy.Steps to Reproduce
profile/suites.nix
The text was updated successfully, but these errors were encountered: