bitwarden
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
||||
options.custom = {
|
||||
bitwarden.enable = lib.mkEnableOption "enable bitwarden - CLI password manager";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.custom.bitwarden.enable {
|
||||
programs.rbw = {
|
||||
enable = true;
|
||||
settings = {
|
||||
email = "me@joaoporta.com";
|
||||
lock_timeout = 7200;
|
||||
pinentry = pkgs.pinentry-gnome3;
|
||||
base_url = "https://pass.joaoporta.com";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -130,7 +130,7 @@ return {
|
||||
},
|
||||
{
|
||||
name = "hermes",
|
||||
path = "/mnt/obsidian",
|
||||
path = "/mnt/documents/journal",
|
||||
},
|
||||
},
|
||||
daily_notes = {
|
||||
@@ -148,6 +148,27 @@ return {
|
||||
subdir = "Templates",
|
||||
date_format = "%Y-%m-%d",
|
||||
time_format = "%H:%M",
|
||||
substitutions = {
|
||||
week = function()
|
||||
return os.date("%W", os.time())
|
||||
end,
|
||||
day = function()
|
||||
local d = os.date("%w", os.time())
|
||||
local r = {
|
||||
["0"] = "Sunday",
|
||||
["1"] = "Monday",
|
||||
["2"] = "Tuesday",
|
||||
["3"] = "Wednesday",
|
||||
["4"] = "Thursday",
|
||||
["5"] = "Friday",
|
||||
["6"] = "Saturday",
|
||||
}
|
||||
return r[d]
|
||||
end,
|
||||
full_date = function()
|
||||
return os.date("%A, %B %d, %Y", os.time())
|
||||
end,
|
||||
},
|
||||
},
|
||||
picker = {
|
||||
name = "telescope.nvim",
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [ "git" "jj" ];
|
||||
plugins = [ "git" "jj" "rbw" ];
|
||||
theme = "";
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user