Gerschtli/nix-config

[Question] To use a service from nixpkgs-unstable in your framework what would I do ?

Closed this issue · 2 comments

573 commented

If I wanted services.photoprism.enable⋅=⋅true; probably in my host's configuration.nix but that services' definition was in nixpkgs-unstable only what would the best line of fitting into nix-config be ?

All I could find so far was the line imports = [ "${inputs.unstable}/nixos/modules/services/web-apps/photoprism.nix" ]; but still wouldn't know where to put that exactly.

you could just put it in your hosts configuration.nix

573 commented

Thanks, using that answer I also found out I could use nixos/base/general.nix in case of multiple hosts.