nixos/machines/optimus.nix

46 lines
740 B
Nix
Raw Normal View History

2023-01-25 11:48:44 +00:00
/*
Name: https://en.wikipedia.org/wiki/Optimus_Prime
Why: Created to sell toys so this vm is for games
Type: VM
Hardware: -
From: 2023
Role: Game host
Notes:
2023-01-25 11:48:44 +00:00
*/
{
pkgs,
lib,
nodes,
arion,
...
}: let
2023-01-25 11:48:44 +00:00
# name of the server, sets teh hostname and record for it
2024-12-09 23:08:39 +00:00
name = "optimus-test";
ip_pub = "193.1.99.85";
hostname = "${name}.skynet.ie";
host = {
ip = ip_pub;
name = name;
hostname = hostname;
};
2023-01-25 11:48:44 +00:00
in {
imports = [
2024-12-09 23:08:39 +00:00
../applications/pelican/pelican.nix
2023-01-25 11:48:44 +00:00
];
deployment = {
targetHost = hostname;
targetPort = 22;
targetUser = null;
tags = ["active"];
2023-01-25 11:48:44 +00:00
};
services.skynet = {
host = host;
2024-12-09 23:08:39 +00:00
#backup.enable = true;
pelican.panel.enable = true;
2023-05-24 15:39:02 +00:00
};
}