i3/desktop: Split out
This commit is contained in:
parent
2ad4bee0f9
commit
d994dfb9fb
11 changed files with 161 additions and 94 deletions
19
hm/password/default.nix
Normal file
19
hm/password/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
let
|
||||
mod = config.xsession.windowManager.i3.config.modifier;
|
||||
in
|
||||
{
|
||||
config = {
|
||||
home.packages = with pkgs; [
|
||||
pwgen
|
||||
];
|
||||
programs = {
|
||||
bash.shellAliases = {
|
||||
pw = ''${pkgs.pwgen}/bin/pwgen 32 -y''; # Generate passwords. ln((26*2+10)**32)/ln(2) ≅ 190 bits of entropy
|
||||
};
|
||||
password-store.enable = true;
|
||||
};
|
||||
xsession.windowManager.i3.config.keybindings."${mod}+c" = "exec --no-startup-id ${config.programs.rofi.pass.package}/bin/rofi-pass --last-used";
|
||||
# TODO Try autopass.cr
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue