Add password manager
This commit is contained in:
parent
d8e0210c30
commit
fcd046b8d1
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
home.stateVersion = "21.11";
|
home.stateVersion = "21.11";
|
||||||
|
|
||||||
imports = [ ./shell ./wayland ./email.nix ];
|
imports = [ ./shell ./wayland ./password.nix ./email.nix ];
|
||||||
|
|
||||||
xdg.enable = true;
|
xdg.enable = true;
|
||||||
xdg.userDirs.enable = true;
|
xdg.userDirs.enable = true;
|
||||||
|
|
|
@ -1,14 +1,16 @@
|
||||||
{ pkgs, fullname, email, ... }:
|
{ config, pkgs, fullname, email, ... }:
|
||||||
let
|
let
|
||||||
maildir = "/home/kiana/.mail";
|
maildir = "${config.xdg.dataHome}/mail";
|
||||||
|
pass = config.programs.password-store.package;
|
||||||
in {
|
in {
|
||||||
accounts.email = {
|
accounts.email = {
|
||||||
maildirBasePath = maildir;
|
maildirBasePath = maildir;
|
||||||
accounts = {
|
accounts = {
|
||||||
Gmail = {
|
gmail = {
|
||||||
address = email;
|
address = email;
|
||||||
userName = email;
|
userName = email;
|
||||||
flavor = "gmail.com";
|
flavor = "gmail.com";
|
||||||
|
passwordCommand = "${pass}/bin/pass Email/gmail.com";
|
||||||
primary = true;
|
primary = true;
|
||||||
mbsync = {
|
mbsync = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
7
home-manager/password.nix
Normal file
7
home-manager/password.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
programs.password-store = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]);
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue