18 Nov 2021 |
| scotttrinh left the room. | 14:53:57 |
| scotttrinh joined the room. | 14:54:11 |
| scotttrinh set their display name to scotttrinh. | 19:00:16 |
| scotttrinh set a profile picture. | 19:00:18 |
| austinp17 joined the room. | 21:06:00 |
19 Nov 2021 |
SkamDart | Is it possible to build all outputs of a flake from nix build? | 01:41:11 |
tomberek | SkamDart: it's not pretty, but....
nix flake show --json | jq '[leaf_paths as $path | select(getpath($path) == "derivation") | {"key": $path | join(".") | sub(".type";""), "value": getpath($path)}] | from_entries | keys|.[]' -cr | xargs -I{} nix build .#{}
| 02:26:50 |
ilkecan | In reply to @skamdart:matrix.org Is it possible to build all outputs of a flake from nix build? If you can modify the flake, you can add the outputs you would like to be built under checks output and then run nix flake check . Note that some outputs might not supposed to be built. | 09:33:07 |
lovesegfault | How can I get my flake to work in a repo that contains submodules? | 20:38:28 |
lovesegfault | Like, I have a top-level flake and a submoduel foo/bar/ but when I build the submodule is not there | 20:38:50 |
lovesegfault | (inside the build sandbox, that is) | 20:38:55 |
SkamDart | Rad. Thanks folks! | 21:07:04 |
20 Nov 2021 |
| artemist 🏳️⚧️ joined the room. | 02:15:32 |
artemist 🏳️⚧️ | I have a repo with a few modules in it. Can I just do nixosModules.foo = ./foo.nix or do I need to wrap that in something? | 02:55:22 |
ilkecan | In reply to @artemist:artem.ist I have a repo with a few modules in it. Can I just do nixosModules.foo = ./foo.nix or do I need to wrap that in something? That should work. | 09:14:51 |
ilkecan | or rather nixosModules.foo = import ./foo.nix | 09:15:39 |
| nykw joined the room. | 11:05:49 |
j-k | In reply to @lovesegfault:matrix.org Like, I have a top-level flake and a submoduel foo/bar/ but when I build the submodule is not there Looks like it's not possible yet. https://github.com/NixOS/nix/issues/4423 Submodule support was merged and reverted | 16:09:41 |
j-k | Or maybe this works git+file://$(pwd)?submodules=1
https://github.com/NixOS/nix/pull/5434
| 16:10:41 |
j-k | could try ?submodules=1 on what you have 🤷 | 16:10:58 |
lovesegfault | Yeah, it just doesn't work | 21:00:29 |
lovesegfault | I tried a bunch of ways | 21:00:32 |
21 Nov 2021 |
artemist 🏳️⚧️ | Does specialArgs only apply to modules directly referenced in the nixpkgs.lib.nixosSystem call? It seems like it's doing that for me and I'd like it to work recursively | 18:47:48 |
balsoft | In reply to @artemist:artem.ist Does specialArgs only apply to modules directly referenced in the nixpkgs.lib.nixosSystem call? It seems like it's doing that for me and I'd like it to work recursively No, it should work recursively | 18:48:12 |
balsoft | Have a link to the code? | 18:48:20 |
artemist 🏳️⚧️ | Oh, I think the issue is that it's being called from within home-manager | 18:48:45 |
balsoft | Hm, I don't understand what you're doing then 🤔 | 18:51:56 |
artemist 🏳️⚧️ | Okay, my non-working changes are here: https://github.com/artemist/nixos-config/commit/2824907ab6b1c03e34b2a8c98d181779ce8b06df | 18:55:20 |
artemist 🏳️⚧️ | I get error: cannot coerce null to a string in <nixpkgs>/pkgs/stdenv/generic/make-derivation.nix:224:17 | 19:01:06 |
balsoft | In reply to @artemist:artem.ist Okay, my non-working changes are here: https://github.com/artemist/nixos-config/commit/2824907ab6b1c03e34b2a8c98d181779ce8b06df Hm, interesting | 19:07:18 |