19
submitted 3 months ago by LGUG2Z@lemmy.world to c/nix@programming.dev

After learning how to add an unstable overlay to nixpkgs, being able to override individual service modules from unstable was something that I still struggled with until fairly recently. Hopefully this helps someone else looking to do common-but-not-very-obvious operation.

top 2 comments
sorted by: hot top controversial new old
[-] flashgnash@lemm.ee 1 points 3 months ago

You can import unstable as a package override

I've had it in the past where I can specify in the package name (like pkgs.unstable.chromium). You'll be able to do the same with service options as most allow you to set the package they use with a config option

[-] LGUG2Z@lemmy.world 1 points 3 months ago

Yeah this is usually the way to go, I think I just got unlucky that this particular service on nixos-23.11 doesn't have a package override option (but it will have in nixos-24.x releases!)

this post was submitted on 14 Mar 2024
19 points (100.0% liked)

Nix / NixOS

1465 readers
18 users here now

Main links

Videos

founded 1 year ago
MODERATORS