!9IQChSjwSHXPPWTa:lix.systems

Lix

1077 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-rooms289 Servers

Load older messages


SenderMessageTime
13 Oct 2025
@blastboomstrice:4d2.orgBlastboom StriceYo thanks!21:13:07
@raj-magesh:matrix.orgRaj

https://martinfowler.com/bliki/TwoHardThings.html

Reminded me of this

22:22:31
@pktls:matrix.orgDavid Leeso hey, I've got a nice flake setup for nixos. buut if I wanted to have a "not flake but not channels" setup, maybe like https://jade.fyi/blog/pinning-nixos-with-npins/ says .. is there anything else to show how to actually go about it?22:28:07
14 Oct 2025
@ekler:feel-co.orgekler

what are you stuck on?

00:41:20
@pktls:matrix.orgDavid Leeactually not stuck at all: https://github.com/davidlee/nix-config/blob/main/nix-config/PORTING-NOTES.md rebuilds without drama. Pleasantly surprised to find I can just symlink to my flakes so I can port them one at a time if I decide to commit just gotta try an actual switch now04:36:52
@pktls:matrix.orgDavid Leewell, damn. worked without a hitch. fast, too. 04:42:10
@piegames:flausch.socialpiegames
In reply to @pktls:matrix.org
so hey, I've got a nice flake setup for nixos. buut if I wanted to have a "not flake but not channels" setup, maybe like https://jade.fyi/blog/pinning-nixos-with-npins/ says .. is there anything else to show how to actually go about it?
https://piegames.de/dumps/pinning-nixos-with-npins-revisited/
06:04:41
@firefly:raccoon.collegeFireFly nice, that's pretty much what I arrived at as well (although I called my symlink /etc/current-nixpkgs) 08:38:35
@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

There are no newer messages yet.


Back to Room ListRoom Version: 10