-
Notifications
You must be signed in to change notification settings - Fork 171
Add "package" option for docspell nix modules #2627
Copy link
Copy link
Closed
Labels
nixThings regarding nix/nixos setupThings regarding nix/nixos setup
Description
Currently Docspell services use hardcoded pkgs.docspell-joex and pkgs.docspell-restserver:
# joex.nix
cmd = "${pkgs.docspell-joex}/bin/docspell-joex ${args} -- ${configFile}";
# server.nix
cmd = "${pkgs.docspell-restserver}/bin/docspell-restserver ${args} -- ${configFile}";This approach has two implications:
- It requires an overlay to be passed to
pkgsinstance - It does not allow the user to specify a custom version of docspell (unless it's been patched in
pkgsinstance)
Many services.<name> modules in NixOS implement a package option which allows the user to override the package that is used for the service in the specific modules. This also allows skipping the overlay part.
If ACKed, I'd be happy to implement this option in a PR. The implementation would leave the default behavior as is.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
nixThings regarding nix/nixos setupThings regarding nix/nixos setup