bitwarden
This commit is contained in:
@@ -35,6 +35,7 @@
|
|||||||
../../modules/home-manager/ntfy-notify
|
../../modules/home-manager/ntfy-notify
|
||||||
../../modules/home-manager/pinentry
|
../../modules/home-manager/pinentry
|
||||||
../../modules/home-manager/swaync
|
../../modules/home-manager/swaync
|
||||||
|
../../modules/home-manager/bitwarden-cli
|
||||||
|
|
||||||
inputs.zen-browser.homeModules.beta
|
inputs.zen-browser.homeModules.beta
|
||||||
];
|
];
|
||||||
@@ -95,7 +96,7 @@
|
|||||||
openspec.enable = true;
|
openspec.enable = true;
|
||||||
power-profiles.enable = true;
|
power-profiles.enable = true;
|
||||||
ntfy-notify.enable = true;
|
ntfy-notify.enable = true;
|
||||||
|
bitwarden.enable = true;
|
||||||
};
|
};
|
||||||
home.packages =
|
home.packages =
|
||||||
let
|
let
|
||||||
|
|||||||
@@ -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",
|
name = "hermes",
|
||||||
path = "/mnt/obsidian",
|
path = "/mnt/documents/journal",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
daily_notes = {
|
daily_notes = {
|
||||||
@@ -148,6 +148,27 @@ return {
|
|||||||
subdir = "Templates",
|
subdir = "Templates",
|
||||||
date_format = "%Y-%m-%d",
|
date_format = "%Y-%m-%d",
|
||||||
time_format = "%H:%M",
|
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 = {
|
picker = {
|
||||||
name = "telescope.nvim",
|
name = "telescope.nvim",
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [ "git" "jj" ];
|
plugins = [ "git" "jj" "rbw" ];
|
||||||
theme = "";
|
theme = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user