Files
sydnix/users/crumb/programs/passage.nix
2025-01-03 17:49:23 -07:00

34 lines
814 B
Nix
Executable File

{ 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"];
# };
# };
}