mirror of
https://github.com/tboerger/nixos-config
synced 2026-11-30 01:04:46 +01:00
43 lines
519 B
Nix
43 lines
519 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;
|
|
};
|
|
};
|
|
};
|
|
}
|