krebs.hosts.*: set owner

This commit is contained in:
tv 2016-02-19 16:18:28 +01:00
parent c040c8f1b5
commit 47ef169276
6 changed files with 14 additions and 5 deletions

View file

@ -3,7 +3,7 @@
with config.krebs.lib;
{
hosts = {
hosts = mapAttrs (_: setAttr "owner" config.krebs.users.lass) {
dishfire = {
cores = 4;
nets = rec {

View file

@ -3,7 +3,7 @@
with config.krebs.lib;
{
hosts = {
hosts = mapAttrs (_: setAttr "owner" config.krebs.users.makefu) {
pnp = {
cores = 1;
nets = {

View file

@ -3,7 +3,7 @@
with config.krebs.lib;
{
hosts = {
hosts = mapAttrs (_: setAttr "owner" config.krebs.users.miefda) {
bobby = {
cores = 4;
nets = {

View file

@ -3,7 +3,7 @@
with config.krebs.lib;
{
hosts = {
hosts = mapAttrs (_: setAttr "owner" config.krebs.users.mv) {
stro = {
cores = 4;
nets = {

View file

@ -6,7 +6,7 @@ with config.krebs.lib;
dns.providers = {
de.viljetic = "regfish";
};
hosts = {
hosts = mapAttrs (_: setAttr "owner" config.krebs.users.tv) {
cd = rec {
cores = 2;
extraZones = {

View file

@ -20,6 +20,15 @@ types // rec {
default = {};
};
owner = mkOption {
type = user;
# TODO proper user
default = {
name = "krebs";
mail = "spam@krebsco.de";
};
};
extraZones = mkOption {
default = {};
# TODO: string is either MX, NS, A or AAAA