i3/desktop: Split out

This commit is contained in:
Geoffrey Frogeye 2024-01-12 23:52:53 +01:00
parent 2ad4bee0f9
commit d994dfb9fb
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
11 changed files with 161 additions and 94 deletions

19
hm/password/default.nix Normal file
View 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
};
}