!9IQChSjwSHXPPWTa:lix.systems

Lix

1107 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms295 Servers

Load older messages


SenderMessageTime
14 Oct 2025
@firefly:raccoon.collegeFireFly actually, one question about this: I ended up resorting to setting enviornment.sessionVariables.NIX_PATH since as far as I could tell the nix.nixPath is provided by the channels module and disabled if you set nix.channel.enable = false;.. unsure why it seems you didn't run into that? 08:43:51
@aloisw:julia0815.dealoisw Interesting how many possibilities people have figured out to do that thing. There's also setting the nix-path config option. 08:43:59
@piegames:flausch.socialpiegames My home config says I must have run into at least some issues here https://git.darmstadt.ccc.de/piegames/home-config/-/blob/master/modules/generic.nix?ref_type=heads#L54-57
But it somehow works in the current configuration
08:46:32
@piegames:flausch.socialpiegames Be aware of nix.settings.nixPath vs nix.nixPath 08:46:42
@coca162:matrix.orgCoca At least when I was doing this change myself I didn't have any difficulties with nix.nixPath and nix.channel.enable = false; together 08:48:04
@firefly:raccoon.collegeFireFly🤷08:49:48
@piegames:flausch.socialpiegames IIRC that option works, but nix.settings.nixPath doesn't, because the former is a NixOS option that does the right things while the other merely sets the Nix config and Nix config is garbage as usual 08:50:32
@piegames:flausch.socialpiegames https://github.com/NixOS/nixpkgs/blob/nixos-25.05/nixos/modules/config/nix-channel.nix#L42-L52
https://github.com/NixOS/nixpkgs/blob/nixos-25.05/nixos/modules/config/nix-channel.nix#L94-L96
nix.nixPath does the right thing, the channels thingie is only about its default value
08:51:34
@firefly:raccoon.collegeFireFly hm, no I was trying to set nix.nixPath, and looking at configuration.nix/the source it seems to be coming from nix-channel.nix and gated behind mkIf cfg.enable... but really it doesn't matter tbh, I'm fine with just setting environment.sessionVariables.NIX_PATH directly 08:51:46
@piegames:flausch.socialpiegames (Also hence me using mkForce to make sure no other module happens to sneak in some other bullshit) 08:51:57
@firefly:raccoon.collegeFireFlyhttps://github.com/NixOS/nixpkgs/blob/nixos-25.05/nixos/modules/config/nix-channel.nix#L80 hm this is the check I'm looking at08:52:24
@piegames:flausch.socialpiegames oh wait you're right the entire block is gated on channel.enable 08:52:41
@piegames:flausch.socialpiegames https://github.com/NixOS/nixpkgs/blob/nixos-25.05/nixos/modules/config/nix-channel.nix#L19 oh wait cfg.enable refers to nix.enable and not nix.channel.enable 08:55:33
@piegames:flausch.socialpiegamesso what I said earlier is true and that's why it works regardless of channels08:55:50
@firefly:raccoon.collegeFireFlyohh08:55:54
@piegames:flausch.socialpiegames * oh wait you're right the entire block is gated on channel.enable 08:56:01
@piegames:flausch.socialpiegamesgosh this language08:56:12
@firefly:raccoon.collegeFireFlyso then it should be working fine, maybe I just somehow convinced myself it didn't when I was testing different approaches08:56:29
@piegames:flausch.socialpiegamesor you didn't reboot strong enough after switching08:57:54
@piegames:flausch.socialpiegamesenvironment variables don't propagate changes well08:58:07
@firefly:raccoon.collegeFireFlyyeah could be, I don't remember08:58:17
@firefly:raccoon.collegeFireFlythanks for the second pair of eyes/I think I'll just update it to match as well now ^^08:59:33
@crop_tech:matrix.orgcrop if i simply use this
{ pkgs, ... }:
{
  nix.package = pkgs.lixPackageSets.stable.lix;
}
in my system configuration...
is not picked up ... now it uses nix again
18:49:23
@k900:0upti.meK900What is "it"?18:51:48
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)

Well, I did it like this (an overlay, for the other Nix related packages too)

packages = {...} // lib.listToAttrs (
        lib.mapAttrsToList
          (name: val: {
            name =
              let
                replacedNames = {
                  lix = "nix";
                };
              in
              if pkgs.lib.hasAttr name replacedNames then pkgs.lib.getAttr name replacedNames else name;
            value = val;
          })
          (
            lib.filterAttrs (
              _: v: lib.isDerivation v
            ) inputs.nixpkgs.legacyPackages.${system}.lixPackageSets.git
          )
      );
18:53:05
@crop_tech:matrix.orgcropso this is not correct? https://lix.systems/add-to-config/18:54:09
@k900:0upti.meK900That is correct18:54:22
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)Yra18:54:30
@k900:0upti.meK900Where are you seeing Nix?18:54:32
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her) * 18:54:34

Show newer messages


Back to Room ListRoom Version: 10