!RRerllqmbATpmbJgCn:nixos.org

Nix / NixOS

3852 Members
Nix/NixOS user help channel | Latest NixOS: 24.05 (Uakari) | Ask your question here or on https://discourse.nixos.org | All NixOS rooms are moderated! Ask for help in #moderation:nixos.org659 Servers

Load older messages


SenderMessageTime
21 Oct 2024
@mjm:midna.devmjmactually20:50:53
@liv:liv.townliv <3suffice to say, but I am struggling to understand how this works :p20:50:58
@mjm:midna.devmjm replace it with config 20:50:57
@mjm:midna.devmjm but also you can drop the config. from the front of all of those in the first picture 20:51:12
@mjm:midna.devmjmrecommended reading: https://nix.dev/tutorials/module-system/20:51:33
@liv:liv.townliv <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:liv.townliv <3clipboard.png
Download clipboard.png
20:52:47
@liv:liv.townliv <3or also remove config from the liv.laptop.enable line?20:52:57
@mjm:midna.devmjmalso that line20:53:06
@mjm:midna.devmjmall of them20:53:09
@liv:liv.townliv <3okay yeah that seems to build20:53:11
@liv:liv.townliv <3thank you all a lot20:53:34
@liv:liv.townliv <3
In reply to @mjm:midna.dev
recommended reading: https://nix.dev/tutorials/module-system/
i will definitely read that
20:53:41
@mjm:midna.devmjmmodule 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 that20:54:15
@emilazy:matrix.orgemily if you don't include options or config then everything is implicitly under config 20:55:14
@mjm:midna.devmjmexcept imports (and i think disabledModules too)20:55:43
@liv:liv.townliv <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:liv.townliv <3but somehow I hadn't tried removing it from every line at the same time20:56:37
@mjm:midna.devmjm 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:midna.devmjmyou can't do it partially20:57:28
@judson:matrix.orgJudson 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:midna.devmjm
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:liv.townliv <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:liv.townliv <3thanks!20:59:37
@judson:matrix.orgJudson 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:matrix.orgfrontearthose examples assume for personal use21:01:44
@frontear:matrix.orgfrontearusing a FOD fetcher wont cause any issues with them21:02:03
@mjm:midna.devmjm 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:matrix.orgfrontearlike fetchFromGitHub and friends21:02:11
@mjm:midna.devmjmit won't get it through the fetcher21:02:15

Show newer messages


Back to Room ListRoom Version: 10