mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-01 20:46:12 +01:00
8b700b61cc
Signed-off-by: main <magic_rb@redalder.org>
25 lines
471 B
Nix
25 lines
471 B
Nix
# 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" ];
|
|
};
|
|
}
|