11 Nov 2024 |
piegames | It doesn't, you need an overlay for that | 16:16:30 |
Sam Lehman | Ah okay. Was looking at the def of nixosModules.default and overlays.default from https://git.lix.systems/lix-project/nixos-module and saw it only overrides nix , nix-eval-jobs , and nix-doc , so wasn't sure if there was a mechanism in nixpkgs that uses the NixOS option for other utils.
| 16:19:06 |
Sam Lehman | Wanted to see if I could make a custom nixos-rebuild using nix-fast-build / nix-output-monitor with overrides to use lix .
| 16:19:12 |
axx | i saw this project had raitobezarius attached to is and that was good enough for me! | 16:19:20 |
Sam Lehman | Would the lix-project/nixos-module repo accept a PR for a lix-based nixos-rebuild (and other related utils like nixos-install )?
...or would it be better to make a PR in nixpkgs to allow using config.nix.package for nix-based utils and just set that downstream?
Either way, it seems like expected behavior for a Lix nixosModule to configure the utils for working with NixOS to also use lix .
| 16:26:44 |
raitobezarius | In reply to @kfears:matrix.org
Gerrit seems to have some issues :/
fatal: Unpack error, check server log
error: remote unpack failed: error Missing tree 497d9883f549cd1a2242e6929623941702a783fe
Still ongoing? | 16:27:40 |
KFears (annoying) | In reply to @raitobezarius:matrix.org Still ongoing? Just checked, seems to be a "yes" :( | 16:28:08 |
raitobezarius | In reply to @axx:jaccu.se i saw this project had raitobezarius attached to is and that was good enough for me! Oh wow, I don't know what earned me such a reputation but thank you for the trust! Hope you get a good experience! | 16:28:32 |
axx | It was nice to meet you at Chaos Camp last year and so far what i see of your work overall looks good, so i guess that does it :) | 16:34:12 |
K900 | In reply to @lehmanator:tchncs.de
Would the lix-project/nixos-module repo accept a PR for a lix-based nixos-rebuild (and other related utils like nixos-install )?
...or would it be better to make a PR in nixpkgs to allow using config.nix.package for nix-based utils and just set that downstream?
Either way, it seems like expected behavior for a Lix nixosModule to configure the utils for working with NixOS to also use lix .
I'm pretty sure nixpkgs does that already? | 17:04:23 |
aloisw | Doesn't --fast just use the system nix ? | 17:16:39 |
K900 | It does | 17:42:09 |
Sam Lehman | In reply to @k900:0upti.me I'm pretty sure nixpkgs does that already? Whoops, you are correct.
Turns out I had a nixos-rebuild installed in a profile, so nixos-rebuild repl was showing a non-Lix nix version.
| 18:36:38 |
Sam Lehman | Not sure how nixpkgs is passing config.nix.package to other utils though.
Thenix.package option is declared in nixpkgs/nixos/modules/services/system/nix-daemon.nix , which only sets the nix binary used by the nix-daemon service & adds it to environment.systemPackages .
Looks like pkgs.nixos-install & pkgs.nixos-rebuild get passed a nix package via the callPackage pattern, so idk how the option value propagates down to other packages depending on the nix binary.
| 18:43:28 |
Sam Lehman | * Not sure how nixpkgs is passing config.nix.package to other utils though.
The nix.package option is declared in nixpkgs/nixos/modules/services/system/nix-daemon.nix , which only sets the nix binary used by the nix-daemon service & adds it to environment.systemPackages .
Looks like pkgs.nixos-install & pkgs.nixos-rebuild get passed a nix package via the callPackage pattern, so idk how the option value propagates down to other packages depending on the nix binary.
| 18:43:41 |
K900 | They're weirdly magical | 18:44:14 |
K900 | https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/installer/tools/tools.nix | 18:45:17 |
Sam Lehman | In reply to @k900:0upti.me https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/installer/tools/tools.nix ah makes sense now, thanks!
Didn't know anything from nixos/modules/installer was imported by default. Feels like this would be in nixos/modules/config/nix.nix instead of nixos/modules/installer/tools/tools.nix .
| 18:59:21 |
| vorboyvo joined the room. | 19:33:36 |
| vorboyvo | 19:34:21 |
12 Nov 2024 |
gulbanana | does anyone know whether the lix installer works on WSL? | 05:06:42 |
gulbanana | (and indeed whether lix itself does?) | 05:06:58 |
KFears (annoying) | I can't confirm either, but it is supposed to work, I think | 05:09:29 |
KFears (annoying) | https://git.lix.systems/lix-project/lix-installer#in-wsl2 | 05:10:23 |
gulbanana | great, i'll give it a shot | 05:13:46 |
gulbanana | it seems to have worked fine. i didn't have to enable systemd as the instructions suggest, because it's on by default these days | 05:22:31 |
KFears (annoying) | Nice! | 05:25:31 |
aidalgol | AFAIK, the builder sandboxing won't work under WSL1, but everything should work fine under WSL2. | 05:32:27 |
gulbanana | i'm using WSL2, although it's a shame that the WSL1 model didn't work it. it was a more novel tech | 05:32:57 |
gulbanana | and more of an actual "subsystem" than the current integrated-virtual-machine approach | 05:33:09 |