(wip) Use password-store
This commit is contained in:
29
users/crumb/programs/passage.nix
Executable file
29
users/crumb/programs/passage.nix
Executable file
@@ -0,0 +1,29 @@
|
||||
{ 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"];
|
||||
# };
|
||||
# };
|
||||
}
|
||||
Reference in New Issue
Block a user