Skip to content

Commit f691ef9

Browse files
committed
password-management: switch from pass to gopass
1 parent b283ec9 commit f691ef9

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

modules/base/passwords-mgmt/password-store.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
{
1+
topLevel: {
22
flake.modules = {
33
homeManager.base =
4-
{ config, ... }:
4+
{ config, pkgs, ... }:
55
{
66
programs = {
77
password-store = {
88
enable = true;
9+
package = pkgs.gopass;
910
settings = {
1011
PASSWORD_STORE_DIR = "${config.xdg.configHome}/.password-store";
12+
PASSWORD_STORE_KEY = (topLevel.config.flake.meta.users.${config.home.username}).key;
1113
};
1214
};
1315
};

modules/dev/git/gpg.nix

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
{
1+
topLevel: {
22
flake.modules = {
3-
homeManager.dev = {
4-
programs = {
5-
gpg = {
6-
enable = true;
7-
settings = {
8-
default-key = "0AAF2901E8040715";
3+
homeManager.dev =
4+
{ config, ... }:
5+
{
6+
programs = {
7+
gpg = {
8+
enable = true;
9+
settings = {
10+
default-key = (topLevel.config.flake.meta.users.${config.home.username}).key;
11+
};
912
};
1013
};
1114
};
12-
};
1315
};
1416
}

0 commit comments

Comments
 (0)