2023-06-10 10:50:53 +00:00
|
|
|
{ config, lib, pkgs, ... }: let
|
|
|
|
slib = import ../../lib/pure.nix { inherit lib; };
|
2022-11-23 15:37:32 +00:00
|
|
|
in {
|
|
|
|
options.krebs.users = lib.mkOption {
|
2023-06-10 10:50:53 +00:00
|
|
|
type = lib.types.attrsOf slib.types.user;
|
2022-11-23 15:37:32 +00:00
|
|
|
};
|
|
|
|
config = lib.mkIf config.krebs.enable {
|
|
|
|
krebs.users = {
|
|
|
|
krebs = {
|
|
|
|
home = "/krebs";
|
|
|
|
mail = "spam@krebsco.de";
|
|
|
|
};
|
|
|
|
root = {
|
|
|
|
home = "/root";
|
|
|
|
pubkey = config.krebs.build.host.ssh.pubkey;
|
|
|
|
uid = 0;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|