{ config, lib, pkgs, ... }: { home.packages = [ pkgs.passage ]; home.file.".passage/identities".source = (config.lib.file.mkOutOfStoreSymlink config.sydnix.sops.keyFile); home.file.".passage/store".source = (config.lib.file.mkOutOfStoreSymlink "/persist/home/crumb/.passage/store"); home.shellAliases."pass" = "${pkgs.passage/bin/passage}"; # TODO: # systemd.user.services.sync-password-store = { # Unit = { # Description = "Pull and push user password store."; # }; # Service = { # Environment = "PATH=/run/current-system/sw/bin"; # ExecStart = # let script = '' # set -xe -o pipefail # ''; # in pkgs.writeShellScript "sync-password-store" script; # }; # Install = { # WantedBy = ["default.target"]; # }; # }; }