| 16 Apr 2023 |
emily | then use
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
your inputs isn't available otherwise
| 20:43:21 |
Find me at aleksana:qaq.li | In reply to @me:indeednotjames.com
then use
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
your inputs isn't available otherwise
I've used specialArgs = {inherit inputs;} in colmena | 20:44:10 |
Find me at aleksana:qaq.li | https://github.com/zhaofengli/colmena/issues/86 | 20:44:56 |
Find me at aleksana:qaq.li | Wait | 20:47:54 |
Find me at aleksana:qaq.li | You are right actually | 20:47:56 |
Find me at aleksana:qaq.li | I found some rather strange situations | 20:49:27 |
Find me at aleksana:qaq.li | Whether I put specialArgs in colmena or nixosSystem, as long as I don't put it at the same time, it will lead to infinite recursion | 20:50:51 |
Find me at aleksana:qaq.li | * Whether I put specialArgs in colmena or nixosSystem, as long as I don't put in both at the same time, it will lead to infinite recursion | 20:51:33 |
emily | In reply to @aleksana:mozilla.org Whether I put specialArgs in colmena or nixosSystem, as long as I don't put in both at the same time, it will lead to infinite recursion can't reproduce what you are saying. what commands are you using? | 20:55:56 |
Find me at aleksana:qaq.li | In reply to @me:indeednotjames.com can't reproduce what you are saying. what commands are you using? colmena build --show-trace | 20:56:30 |
emily | In reply to @aleksana:mozilla.org colmena build --show-trace can you share your config again? | 20:57:42 |
Find me at aleksana:qaq.li | In reply to @me:indeednotjames.com can you share your config again? https://paste.aleksana.moe/pubarmaine.nix | 20:58:26 |
Find me at aleksana:qaq.li | This is the second situation, where specialArgs is moved into nixosSystem | 20:58:47 |
Find me at aleksana:qaq.li | This produces infinite recursion … while evaluating the module argument inputs' in ":anon-1420:anon-1:anon-2":` | 20:59:27 |
Find me at aleksana:qaq.li | https://paste.aleksana.moe/ckliblefec.nix | 21:00:33 |
Find me at aleksana:qaq.li | This is the third that has both specialArgs included, and it successfully builds | 21:00:53 |
emily | In reply to @aleksana:mozilla.org This is the third that has both specialArgs included, and it successfully builds why don't you use that version then? :) | 21:08:34 |
Find me at aleksana:qaq.li | In reply to @me:indeednotjames.com why don't you use that version then? :) Because this is just a simple demo of my config | 21:09:09 |
Find me at aleksana:qaq.li | Then I can get all the things done and go to sleep | 21:09:33 |
emily | I am afraid I don't quite understand. Do you still need help? | 21:11:16 |
Find me at aleksana:qaq.li | In reply to @me:indeednotjames.com I am afraid I don't quite understand. Do you still need help? Yes | 21:11:23 |
Find me at aleksana:qaq.li | If you still have time you can take a look at this | 21:11:52 |
Find me at aleksana:qaq.li | https://github.com/Aleksanaa/flakes | 21:11:53 |
Find me at aleksana:qaq.li | There's flake/colmena.nix and it's not correct | 21:12:14 |
Find me at aleksana:qaq.li | I would make it use my node configs in flake/node.nix | 21:12:58 |
Find me at aleksana:qaq.li | Now I'm trying to provide the same specialArgs for the both, but it doesn't end there. flake-parts provides easy overlay definitions (in flake/nixpkgs.nix) and can be called with (getSystem system).allModuleArgs.final | 21:15:35 |
Find me at aleksana:qaq.li | So the real case is rather complicated. I'm just saying that the adapter is far from enough to correctly translate the official nixosSystem to colmena/hive type of configurations | 21:16:37 |
emily | oh wow, yeah no.
that's way over my head 😅 | 21:23:52 |
Find me at aleksana:qaq.li | So, a better adapter | 21:24:13 |
Find me at aleksana:qaq.li | colmena = someMagicFunctions config.nixosConfigurations | 21:24:32 |