dotfiles/nixos/secret-lib/password-hashes.nix

25 lines
471 B
Nix
Raw Normal View History

# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
#
# SPDX-License-Identifier: LGPL-3.0-or-later
{lib, ...}:
with lib;
let
mkPasswordHashOptions =
users:
genAttrs
users
(user:
mkOption {
description = ''
Password hash for user ${user}.
'';
type = with types; str;
default = "";
});
in
{
options = {
passwordHashes = mkPasswordHashOptions [ "main" ];
};
}