Skip to content

Your pass-secret-service with nix #3

@mannp

Description

@mannp

Hey there @grimsteel thanks for creating this

I have been trying to swap out the mdellweg pass_secret_service for yours, using the same service defn with your package being used.

Unfortunately I get the following systemd error, and I am not sure on how to debug further.

Do you support --path command line option to specify the path of the pass-store?

https://github.com/mdellweg/pass_secret_service

https://github.com/nix-community/home-manager/blob/release-24.11/modules/services/pass-secret-service.nix

○ pass-secret-service.service - Pass libsecret service
     Loaded: loaded (/home/me/.config/systemd/user/pass-secret-service.service; enabled; preset: ignored)
     Active: inactive (dead) since Sat 2025-01-18 21:04:35 GMT; 24min ago
   Duration: 222ms
 Invocation: bf04f036dea0461ea9650f76c28f5a9b
     Assert: start assertion failed at Sat 2025-01-18 21:29:24 GMT; 1s ago
             AssertFileIsExecutable=/nix/store/nv9g194v0l0kjnhk7nvccbpybicl3pr5-pass-secret-service-0.2.1/bin/pass_secret_service was not met
       Docs: https://github.com/mdellweg/pass_secret_service
   Main PID: 219740 (code=exited, status=2)
   Mem peak: 17.1M
        CPU: 181ms

Jan 18 21:04:35 dt systemd[2918]: pass-secret-service.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jan 18 21:04:35 dt systemd[2918]: pass-secret-service.service: Failed with result 'exit-code'.
Jan 18 21:15:47 dt systemd[2918]: pass-secret-service.service: Starting requested but asserts failed.
Jan 18 21:15:47 dt systemd[2918]: Assertion failed for Pass libsecret service.
Jan 18 21:21:44 dt systemd[2918]: pass-secret-service.service: Starting requested but asserts failed.
Jan 18 21:21:44 dt systemd[2918]: Assertion failed for Pass libsecret service.
Jan 18 21:29:04 dt systemd[2918]: pass-secret-service.service: Starting requested but asserts failed.
Jan 18 21:29:04 dt systemd[2918]: Assertion failed for Pass libsecret service.
Jan 18 21:29:24 dt systemd[2918]: pass-secret-service.service: Starting requested but asserts failed.
Jan 18 21:29:24 dt systemd[2918]: Assertion failed for Pass libsecret service.
    systemd.user.services.pass-secret-service =
      let binPath = "${cfg.package}/bin/pass_secret_service";
      in {
        Unit = {
          AssertFileIsExecutable = "${binPath}";
          Description = "Pass libsecret service";
          Documentation = "https://github.com/mdellweg/pass_secret_service";
          PartOf = [ "default.target" ];
        };

        Service = {
          Type = "dbus";
          ExecStart = "${binPath} ${
              optionalString (cfg.storePath != null) "--path ${cfg.storePath}"
            }";
          BusName = busName;
          Environment = [ "GNUPGHOME=${config.programs.gpg.homedir}" ];
        };

        Install.WantedBy = [ "default.target" ];
      };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions