| 14 Oct 2025 |
FireFly | 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 | 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 | 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 | Be aware of nix.settings.nixPath vs nix.nixPath | 08:46:42 |
Coca | 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 | 🤷 | 08:49:48 |
piegames | 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 | 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 | 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 | (Also hence me using mkForce to make sure no other module happens to sneak in some other bullshit) | 08:51:57 |
FireFly | https://github.com/NixOS/nixpkgs/blob/nixos-25.05/nixos/modules/config/nix-channel.nix#L80 hm this is the check I'm looking at | 08:52:24 |
piegames | oh wait you're right the entire block is gated on channel.enable | 08:52:41 |
piegames | 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 | so what I said earlier is true and that's why it works regardless of channels | 08:55:50 |
FireFly | ohh | 08:55:54 |
piegames | * oh wait you're right the entire block is gated on channel.enable | 08:56:01 |
piegames | gosh this language | 08:56:12 |
FireFly | so then it should be working fine, maybe I just somehow convinced myself it didn't when I was testing different approaches | 08:56:29 |
piegames | or you didn't reboot strong enough after switching | 08:57:54 |
piegames | environment variables don't propagate changes well | 08:58:07 |
FireFly | yeah could be, I don't remember | 08:58:17 |
FireFly | thanks for the second pair of eyes/I think I'll just update it to match as well now ^^ | 08:59:33 |
crop | 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 | What is "it"? | 18:51:48 |
Sofie 🏳️⚧️ (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 | so this is not correct?
https://lix.systems/add-to-config/ | 18:54:09 |
K900 | That is correct | 18:54:22 |
Sofie 🏳️⚧️ (she/her) | Yra | 18:54:30 |
K900 | Where are you seeing Nix? | 18:54:32 |
Sofie 🏳️⚧️ (she/her) | * | 18:54:34 |