nixos-config/profiles/security/pass-secret-service.nix

19 lines
476 B
Nix
Raw Normal View History

2023-02-16 18:51:34 +04:00
{ config, pkgs, lib, ... }: {
home-manager.users.balsoft = {
services.pass-secret-service.enable = true;
systemd.user.services.pass-secret-service = {
Service = {
Type = "dbus";
Environment = [ "GPG_TTY=/dev/tty1" "DISPLAY=:0" ];
BusName = "org.freedesktop.secrets";
};
Unit = rec {
Wants = [ "gpg-agent.service" ];
After = Wants;
PartOf = [ "graphical-session-pre.target" ];
};
};
};
}