2022-10-04 13:58:14 +02:00
|
|
|
{ pkgs, lib, config, options, ... }:
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
2024-01-30 14:00:15 +01:00
|
|
|
cfg = config.personal.programs.password;
|
2022-10-04 13:58:14 +02:00
|
|
|
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options = {
|
2024-01-30 14:00:15 +01:00
|
|
|
personal = {
|
2022-10-04 13:58:14 +02:00
|
|
|
programs = {
|
2024-01-30 14:00:15 +01:00
|
|
|
password = {
|
|
|
|
enable = mkEnableOption "Password";
|
2022-10-04 13:58:14 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2024-01-30 14:00:15 +01:00
|
|
|
environment = {
|
|
|
|
systemPackages = with pkgs; [
|
|
|
|
pwgen
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2022-10-04 13:58:14 +02:00
|
|
|
programs = {
|
|
|
|
_1password = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
_1password-gui = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|