fmt: a bit of a cleanup

This commit is contained in:
silver 2023-07-15 15:05:57 +01:00
parent 3a28291933
commit 6412a53070
12 changed files with 75 additions and 49 deletions

View file

@ -87,13 +87,10 @@
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.skynet_backup = { services.skynet_backup.normal.backups = [
normal.backups = [
"/var/vmail" "/var/vmail"
"/var/dkim" "/var/dkim"
]; ];
host = { ip = cfg.host.ip; name = cfg.host.name; };
};
age.secrets.ldap_pw.file = ../secrets/ldap/pw.age; age.secrets.ldap_pw.file = ../secrets/ldap/pw.age;

View file

@ -43,7 +43,9 @@
config = mkIf cfg.enable { config = mkIf cfg.enable {
# https://search.nixos.org/options?from=0&size=50&sort=alpha_desc&type=packages&query=services.gitlab-runner. # https://search.nixos.org/options?from=0&size=50&sort=alpha_desc&type=packages&query=services.gitlab-runner.
environment.systemPackages = [
pkgs.gitlab-runner
];
age.secrets."${cfg.runner.name}".file = ../secrets/gitlab/runners/${cfg.runner.name}.age; age.secrets."${cfg.runner.name}".file = ../secrets/gitlab/runners/${cfg.runner.name}.age;

View file

@ -41,6 +41,13 @@ in {
]; ];
}; };
services.skynet_backup = {
host = {
ip = ip_pub;
name = name;
};
};
# keep the wired usb connection alive (front panel) # keep the wired usb connection alive (front panel)
networking.interfaces.enp0s29u1u5u2.useDHCP = true; networking.interfaces.enp0s29u1u5u2.useDHCP = true;

View file

@ -39,15 +39,17 @@ in {
]; ];
}; };
services.skynet_backup = {
host = {
ip = ip_pub;
name = name;
};
};
services.skynet_ulfm = { services.skynet_ulfm = {
enable = true; enable = true;
host = { host = {
# pass in teh ip (used for firewall)
ip = ip_pub; ip = ip_pub;
# the name is used for dns
name = name; name = name;
}; };
}; };

View file

@ -42,18 +42,20 @@ in {
]; ];
}; };
services.skynet_backup = {
host = {
ip = ip_pub;
name = name;
};
};
# we use this to pass in teh relevent infomation to the # we use this to pass in teh relevent infomation to the
services.skynet_email = { services.skynet_email = {
enable = true; enable = true;
host = { host = {
# pass in teh ip (used for firewall)
ip = ip_pub; ip = ip_pub;
# the name is used for dns
name = name; name = name;
}; };
domain = "ulcompsoc.ie"; domain = "ulcompsoc.ie";
}; };
} }

View file

@ -42,14 +42,17 @@ in {
]; ];
}; };
services.skynet_backup = {
host = {
ip = ip_pub;
name = name;
};
};
services.skynet_gitlab = { services.skynet_gitlab = {
enable = true; enable = true;
host = { host = {
# pass in teh ip (used for firewall)
ip = ip_pub; ip = ip_pub;
# the name is used for dns
name = name; name = name;
}; };
}; };

View file

@ -42,15 +42,17 @@ in {
]; ];
}; };
# we use this to pass in teh relevent infomation to the services.skynet_backup = {
host = {
ip = ip_pub;
name = name;
};
};
services.skynet_ldap = { services.skynet_ldap = {
enable = true; enable = true;
host = { host = {
# pass in teh ip (used for firewall)
ip = ip_pub; ip = ip_pub;
# the name is used for dns
name = name; name = name;
}; };
}; };

View file

@ -54,20 +54,11 @@ in {
}; };
services.skynet_backup = { services.skynet_backup = {
normal.backups = [ server.enable = true;
#"/etc/skynet"
];
host = { host = {
ip = ip_pub; ip = ip_pub;
name = name; name = name;
}; };
server = {
enable = true;
};
}; };
} }

View file

@ -40,14 +40,17 @@ in {
]; ];
}; };
services.skynet_backup = {
host = {
ip = ip_pub;
name = name;
};
};
services.skynet_games = { services.skynet_games = {
enable = true; enable = true;
host = { host = {
# pass in teh ip (used for firewall)
ip = ip_pub; ip = ip_pub;
# the name is used for dns
name = name; name = name;
}; };
}; };

View file

@ -48,6 +48,13 @@ in {
}; };
}; };
services.skynet_backup = {
host = {
ip = ip_pub;
name = name;
};
};
skynet_dns = { skynet_dns = {
enable = true; enable = true;

View file

@ -32,6 +32,13 @@ in {
tags = [ "active" "dns" ]; tags = [ "active" "dns" ];
}; };
services.skynet_backup = {
host = {
ip = ip_pub;
name = name;
};
};
skynet_dns = { skynet_dns = {
enable = true; enable = true;

View file

@ -41,9 +41,12 @@ in {
]; ];
}; };
environment.systemPackages = [ services.skynet_backup = {
pkgs.gitlab-runner host = {
]; ip = ip_pub;
name = name;
};
};
services.skynet_gitlab_runner = { services.skynet_gitlab_runner = {
enable = true; enable = true;