{ lib, ... }: with lib; { options.local.users = with types; mkOption { default = { }; type = attrsOf (submodule { options = { uid = mkOption { type = int; }; gid = mkOption { type = int; }; groups = mkOption { type = listOf str; default = [ ]; }; }; }); }; config.local.users = import ./users.nix; }