(wip) Use password-store

This commit is contained in:
Madeleine Sydney
2024-12-29 02:43:13 -07:00
parent 52dc849c67
commit 3f0cd8d6ba
28 changed files with 35 additions and 1 deletions

0
users/crumb/default.nix Normal file → Executable file
View File

0
users/crumb/programs.nix Normal file → Executable file
View File

0
users/crumb/programs/nvim.nix Normal file → Executable file
View File

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

0
users/crumb/secrets.yaml Normal file → Executable file
View File