| 16 May 2024 |
teutat3s | jade_: Great, thanks! I want to say that I really like how the lix project documents stuff. | 07:36:25 |
@jade_:matrix.org | (this page was fixed to actually exist in the past two days and is not comprehensive, just including the stuff we remembered to write release notes for) | 07:38:23 |
@jade_:matrix.org | but you can see changes by eelco in it so there are certainly cherry picks :) | 07:38:42 |
fwam | Nyaa | 08:46:13 |
fwam | Lix Devel channel gives me vibes of "You wouldn't make a lesbian fork of Nix" | 08:46:55 |
| clango joined the room. | 09:40:11 |
| johnhamelink joined the room. | 10:54:38 |
johnhamelink | Hi there :D I have a NixOS homelab server I'd like to try out lix on. I'm configuring it using flakes. I followed the tutorial on the website to modify my config, and the config compiles and switches successfully, but nix --version proves that my nix executable hasn't changed to the lix one. I'm still pretty shakey when it comes to debugging things like this - does anyone have any suggestions on how I could figure out why the lix binary isn't in my PATH? | 10:57:39 |
Grimmauld (moving to @grimmauld:grapevine.grimmauld.de) | In reply to @johnhamelink:matrix.org Hi there :D I have a NixOS homelab server I'd like to try out lix on. I'm configuring it using flakes. I followed the tutorial on the website to modify my config, and the config compiles and switches successfully, but nix --version proves that my nix executable hasn't changed to the lix one. I'm still pretty shakey when it comes to debugging things like this - does anyone have any suggestions on how I could figure out why the lix binary isn't in my PATH? whats the output of which nix ? | 11:08:09 |
delroth | another thing you might want to check is systemctl status nix-daemon to make sure it's using a nix-daemon from Lix - if so then most likely your NixOS config is correct and it's a $PATH issue for your user, if not then you have something in your NixOS config overriding config.nix.package | 11:08:56 |
johnhamelink |
In reply to
Grimmauld
In reply to @johnhamelink:matrix.org Hi there :D I have a NixOS homelab server I'd like to try out lix on. I'm configuring it using flakes. I followed the tutorial on the website to modify my config, and the config compiles and switches successfully, but nix --version proves that my nix executable hasn't changed to the lix one. I'm still pretty shakey when it comes to debugging things like this - does anyone have any suggestions on how I could figure out why the lix binary isn't in my PATH? whats the output of which nix ?
john@sun:~/lix-next/ > nix --version
nix (Nix) 2.18.2 | 11:08:42 |
delroth | (even better: grep lix /etc/systemd/system/nix-daemon.service should show an ExecStart= line if your NixOS config is correctly using Lix) | 11:09:52 |
johnhamelink |
In reply to
delroth
(even better: grep lix /etc/systemd/system/nix-daemon.service should show an ExecStart= line if your NixOS config is correctly using Lix)
No lix there either somehow...! | 11:10:14 |
Grimmauld (moving to @grimmauld:grapevine.grimmauld.de) | yeah, but a simple which nix should at least tell us where it pulls it in the PATH, that'd be a good start | 11:10:28 |
delroth | then something in your NixOS configuration is overriding the nix.package option, most likely | 11:10:30 |
delroth | or the Lix module is not being properly imported | 11:10:46 |
johnhamelink |
In reply to
Grimmauld
yeah, but a simple which nix should at least tell us where it pulls it in the PATH, that'd be a good start
which nix shows /run/current-system/sw/bin/nix | 11:10:47 |
delroth | In reply to @johnhamelink:matrix.org
which nix shows /run/current-system/sw/bin/nix (that is correct and what it should be, fwiw) | 11:11:04 |
johnhamelink |
In reply to
johnhamelink
In reply to
Grimmauld
yeah, but a simple which nix should at least tell us where it pulls it in the PATH, that'd be a good start
which nix shows /run/current-system/sw/bin/nix
readlink -f on it shows /nix/store/62nhzqm27dadv0czp5gqnnc38xfbi8k4-nix-2.18.2/bin/nix | 11:11:14 |
Grimmauld (moving to @grimmauld:grapevine.grimmauld.de) | right.... do you set nix.package = pkgs.nixVersions.<...>; somewhere? If so you'll have to remove that part | 11:12:08 |
johnhamelink |
In reply to
Grimmauld
right.... do you set nix.package = pkgs.nixVersions.<...>; somewhere? If so you'll have to remove that part
one sec, I will check :) | 11:12:29 |
johnhamelink |
In reply to
Grimmauld
right.... do you set nix.package = pkgs.nixVersions.<...>; somewhere? If so you'll have to remove that part
I don't, but I do have a let pkgs = import nixpkgs {}; where I add overlays - could that be problematic? | 11:13:24 |
johnhamelink | ^ I do that in the output function of flake.nix | 11:13:51 |
johnhamelink | Here's my flake.nix, if that's any help! https://0x0.st/XPiZ.txt | 11:16:38 |
Grimmauld (moving to @grimmauld:grapevine.grimmauld.de) | i mean, what you always can do is nix.package = pkgs.lix; now that the lix package is in nixpkgs, but you'll loose out on running the git version.
If you actually want to fix the git version, you need to make sure the lix overlays are being applied correctly, potentially doing it directly instead of through the module. That overlay would be at inputs.lix-module.overlays.${system}.default and would go into your overlays = [] list.
| 11:20:20 |
Grimmauld (moving to @grimmauld:grapevine.grimmauld.de) | see nix flake show git+https://git.lix.systems/lix-project/nixos-module for the exact path | 11:20:59 |
Grimmauld (moving to @grimmauld:grapevine.grimmauld.de) | that said, without proper testing i can't immediately tell you why your approach shouldn't work | 11:22:16 |
johnhamelink | Thanks, will give it a go in a sec :) Just being distracted by a call right now but will read through in a wee moment :D Thanks! | 11:23:48 |
| putchar joined the room. | 11:36:40 |
@drupol:matrix.org | Trying to update my config seems to be broken: error: evaluation aborted with the following error message: 'lib.customisation.callPackageWith: Function called without required argument "build-release-notes" at /nix/store/yvfqn… ┣ | 11:42:00 |