mirror of
https://github.com/tboerger/nixos-config
synced 2024-11-23 03:32:08 +01:00
37 lines
509 B
Nix
37 lines
509 B
Nix
{ pkgs, lib, config, options, ... }:
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.personal.programs.password;
|
|
|
|
in
|
|
{
|
|
options = {
|
|
personal = {
|
|
programs = {
|
|
password = {
|
|
enable = mkEnableOption "Password";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment = {
|
|
systemPackages = with pkgs; [
|
|
pwgen
|
|
];
|
|
};
|
|
|
|
programs = {
|
|
_1password = {
|
|
enable = true;
|
|
};
|
|
|
|
_1password-gui = {
|
|
enable = true;
|
|
};
|
|
};
|
|
};
|
|
}
|