stockholm/krebs/3modules/users.nix

21 lines
458 B
Nix
Raw Permalink Normal View History

2023-06-10 10:50:53 +00:00
{ config, lib, pkgs, ... }: let
slib = import ../../lib/pure.nix { inherit lib; };
in {
options.krebs.users = lib.mkOption {
2023-06-10 10:50:53 +00:00
type = lib.types.attrsOf slib.types.user;
};
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;
};
};
};
}