d9119dbbdf
* Update to the latest upstream version of pass-secret-service that includes systemd service files. * Add patch to fix use of a function that has been removed from the Python Cryptography library in NixOS 22.05 * Install systemd service files in the Nix package. * Add NixOS test to ensure the D-Bus API activates the service unit. * Add myself as a maintainer to the package and NixOS test. * Use checkTarget instead of equivalent custom checkPhase.
28 lines
700 B
Nix
28 lines
700 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.services.passSecretService;
|
|
in
|
|
{
|
|
options.services.passSecretService = {
|
|
enable = mkEnableOption "pass secret service";
|
|
|
|
package = mkOption {
|
|
type = types.package;
|
|
default = pkgs.pass-secret-service;
|
|
defaultText = literalExpression "pkgs.pass-secret-service";
|
|
description = "Which pass-secret-service package to use.";
|
|
example = literalExpression "pkgs.pass-secret-service.override { python3 = pkgs.python310 }";
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
systemd.packages = [ cfg.package ];
|
|
services.dbus.packages = [ cfg.package ];
|
|
};
|
|
|
|
meta.maintainers = with maintainers; [ aidalgol ];
|
|
}
|