feat: add a test server for trainees to use

This commit is contained in:
silver 2023-11-20 16:10:09 +00:00
parent cbb4100b4e
commit 0a028eaf53
5 changed files with 126 additions and 44 deletions

View file

@ -34,11 +34,6 @@ in {
config.skynet = { config.skynet = {
users = { users = {
admin = [
"silver"
"evanc"
"eoghanconlon73"
];
committee = [ committee = [
"leo" "leo"
"silver" "silver"
@ -51,6 +46,16 @@ in {
"sourabh1805" "sourabh1805"
"kronsy" "kronsy"
]; ];
admin = [
"silver"
"evanc"
"eoghanconlon73"
];
trainee = [
"eliza"
"milan"
"esy"
];
lifetime = []; lifetime = [];
banned = []; banned = [];
restricted = restricted =

View file

@ -152,6 +152,9 @@
# Nextcloud # Nextcloud
cadie = import ./machines/cadie.nix; cadie = import ./machines/cadie.nix;
# trainee server
marvin = import ./machines/marvin.nix;
}; };
}; };
} }

68
machines/marvin.nix Normal file
View file

@ -0,0 +1,68 @@
/*
Name: https://en.wikipedia.org/wiki/Marvin_the_Paranoid_Android
Why: Has terrible pain in all the diodes down its left side
Type: VM
Hardware: -
From: 2023
Role: For trainees.
Notes:
*/
{
pkgs,
lib,
nodes,
...
}: let
name = "marvin";
ip_pub = "193.1.99.81";
hostname = "${name}.skynet.ie";
in {
imports = [
];
deployment = {
targetHost = hostname;
targetPort = 22;
targetUser = null;
# not deployed automatically as its a test server
tags = [];
};
# allow trainees to deploy
nix.settings.trusted-users = [
"root"
"@skynet-admins-linux"
"@skynet-trainees-linux"
];
# allow trainees access
services.skynet_ldap_client.groups = [
"skynet-admins-linux"
"skynet-trainees-linux"
];
skynet_dns.records = [
{
record = name;
r_type = "A";
value = ip_pub;
server = true;
}
{
record = ip_pub;
r_type = "PTR";
value = hostname;
}
];
services.skynet_backup = {
host = {
ip = ip_pub;
name = name;
};
};
# Put test services below this
}

View file

@ -1,40 +1,44 @@
age-encryption.org/v1 age-encryption.org/v1
-> ssh-ed25519 V1pwNA 4PVHo9zk7nF/HXASYtgADfzpMyFD38yVnGl6DUnJ2H4 -> ssh-ed25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1ANI19/IGWK6mwWW/jxJs1Fo
h010f/3pRBfDRTEZ3Gk9PJfP+FIVqLI2OgbeY2NTcvo ZsuXpRilP9LHl+hslBh/PHbkYwSz/lFI9KjkEQJALFg
-> ssh-ed25519 YFaxCg wAL0IkLCWok++zzq+S35hltR1nhcwWjHa0fWXg2OpiI -> ssh-ed25519 YFaxCg 693MPBIOr1M/fq5UevSXp34ZQabAdlLs9oKROyloTVY
ofMYHtN6tqlN+SS0jyuCRJqtZ1h0+H8u5tAaCoV78T4 erQrhgVVrfn7ViCqhvru19faIgMwPvE3v7WkPZ4/NL4
-> _QQW-grease > p!=fBv 'ac^ A13~BQ -> ssh-ed25519 elCEeg C55GXvjhHsGod2OoQGWPxDuzKEFcE7BrYKKtBGPiWzE
R0K5UQZB1yr3issSaFyKgSVNAXuvjfOb9xWbNHg MLCBn4FulA9M3mPnmMflqWaEcoMwvKPWRfwALceFNRU
--- LEJYFpkOhuuMwE/Ud/RNKdy2r/U0nCWodB+3ioCRNQI -> @b_F0-grease {VD GSb.
cËô^õÈÑ ¨WÀ,‰u¹“H<E2809C>)[Æ¡ÙmD,šÈ…ô€D<E282AC>¢*×¥!§Tø|JUÊ”îUÊ<55>vkÓ<>«j`èÏr&eç< [œty!R™[F7e 5«‰Š†“ƒ/”ŒmÔs´‡5\bc[WŸTi) LIaz9WQq+QPF7KAUifTlTNjA3gWfdxTJRugPL+6Yyvp8upBJ7fVXWlBVy4rzwA
|„M†¯†;€õãvÉ+„ØÞ8<04>PŽ¤FŸcgçÏI,IQ´wÇv --- IWxpAEJY4zpLFtrWPRh7dlM9o0dw4iNmDDRvNm//fMw
<EFBFBD>p˜ïÖœ±U3¿Ÿ­¦QímÜ^Ó
g«a {@ë×…ø
û(ôiøÈþf<C3BE>tŸó˜™æ5P!àýïŠuÅ<75>ŸŽÀ,aféí
nè[ûÖÜe&`uÚDâ¦e¾À|€Dù(Z9œ§sÜ)'-⌲UPé íóŒ¿ÕˆZƒòŒÿ_kôJ•3£ºÿJ—oÖÊ,<9ø[ß

View file

@ -24,6 +24,7 @@ let
skynet = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAIFPXJswth8H1k8+zrg8vCnPkfG1hIIa3wR9DBmjpB5 root@skynet"; skynet = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAIFPXJswth8H1k8+zrg8vCnPkfG1hIIa3wR9DBmjpB5 root@skynet";
earth = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMpvgQcvK7iAm0QrIp5qSvUJzDhOrSBN9MJn9JUSI31I root@earth"; earth = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMpvgQcvK7iAm0QrIp5qSvUJzDhOrSBN9MJn9JUSI31I root@earth";
cadie = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIACcwg27wzzFVvzuTytcnzRmCfGkhULwlHJA/3BeVtgf root@cadie"; cadie = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIACcwg27wzzFVvzuTytcnzRmCfGkhULwlHJA/3BeVtgf root@cadie";
marvin = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIAme2vuVpGYX4La/JtXm3zunsWNDP+SlGmBk/pWmYkH root@marvin";
systems = [ systems = [
agentjones agentjones
@ -39,6 +40,7 @@ let
skynet skynet
earth earth
cadie cadie
marvin
]; ];
dns = [ dns = [