Skip to content

Add "package" option for docspell nix modules #2627

@VTimofeenko

Description

@VTimofeenko

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:

  1. It requires an overlay to be passed to pkgs instance
  2. It does not allow the user to specify a custom version of docspell (unless it's been patched in pkgs instance)

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    nixThings regarding nix/nixos setup

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions