Gerschtli / nix-config

A collection of my system configs and dotfiles
MIT License
71 stars 2 forks source link

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

Closed 573 closed 1 year ago

573 commented 1 year ago

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.

Gerschtli commented 1 year ago

you could just put it in your hosts configuration.nix

573 commented 1 year ago

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