21 Oct 2024 |
mjm | actually | 20:50:53 |
liv <3 | suffice to say, but I am struggling to understand how this works :p | 20:50:58 |
mjm | replace it with config | 20:50:57 |
mjm | but also you can drop the config. from the front of all of those in the first picture | 20:51:12 |
mjm | recommended reading: https://nix.dev/tutorials/module-system/ | 20:51:33 |
liv <3 | In reply to @mjm:midna.dev but also you can drop the config. from the front of all of those in the first picture is this what you mean? | 20:52:44 |
liv <3 | Download clipboard.png | 20:52:47 |
liv <3 | or also remove config from the liv.laptop.enable line? | 20:52:57 |
mjm | also that line | 20:53:06 |
mjm | all of them | 20:53:09 |
liv <3 | okay yeah that seems to build | 20:53:11 |
liv <3 | thank you all a lot | 20:53:34 |
liv <3 | In reply to @mjm:midna.dev recommended reading: https://nix.dev/tutorials/module-system/ i will definitely read that | 20:53:41 |
mjm | module system is hard to understand by just trying random stuff. you really wanna try to build a coherent mental model for it in your head. hopefully that tutorial helps with that | 20:54:15 |
emily | if you don't include options or config then everything is implicitly under config | 20:55:14 |
mjm | except imports (and i think disabledModules too) | 20:55:43 |
liv <3 | In reply to @emilazy:matrix.org if you don't include options or config then everything is implicitly under config yeah that's what I got off of that discourse post | 20:56:09 |
liv <3 | but somehow I hadn't tried removing it from every line at the same time | 20:56:37 |
mjm | that's the thing, if it's on any of them, then the key exists and the module will be treated as such, expecting all config to be under config | 20:57:14 |
mjm | you can't do it partially | 20:57:28 |
Judson | I'm using yarn2nix for the first time; one thing that's confusing is every example default.nix is using src = ./.; Am I missing something? | 20:57:53 |
mjm | In reply to @judson:matrix.org I'm using yarn2nix for the first time; one thing that's confusing is every example default.nix is using src = ./.; Am I missing something? what's the issue with that? | 20:58:19 |
liv <3 | In reply to @mjm:midna.dev that's the thing, if it's on any of them, then the key exists and the module will be treated as such, expecting all config to be under config aaah yeah that makes a lot of sense | 20:59:34 |
liv <3 | thanks! | 20:59:37 |
Judson | Well, I'm trying to use another project in my development flake, so I'm not using my code as the source. I habitually use src = fetchFromGitHub ... and friends. And if I wanted to contribute the packaging to nixpkgs, a local source also doesn't make a lot of sense to me | 21:00:12 |
frontear | those examples assume for personal use | 21:01:44 |
frontear | using a FOD fetcher wont cause any issues with them | 21:02:03 |
mjm | i think using a fetcher like that should work, but the main issue is i think you need to actually have the yarn.lock available locally when you run yarn2nix | 21:02:04 |
frontear | like fetchFromGitHub and friends | 21:02:11 |
mjm | it won't get it through the fetcher | 21:02:15 |