{ config, lib, pkgs, ... }: let mutableSymlink = config.lib.file.mkOutOfStoreSymlink; in { home.packages = [ pkgs.passage ]; home.file.".passage/identities".source = mutableSymlink config.sydnix.sops.keyFile; sydnix.impermanence.directories = [ ".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"]; # }; # }; }