1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-23 03:32:08 +01:00
github.com-tboerger-nixos-c.../shared/programs/password.nix

37 lines
509 B
Nix
Raw Normal View History

{ 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;
};
};
};
}