feat: new server to work as a nix cache
This commit is contained in:
parent
6ae584c895
commit
7408873102
30 changed files with 598 additions and 270 deletions
53
machines/calculon.nix
Normal file
53
machines/calculon.nix
Normal file
|
@ -0,0 +1,53 @@
|
|||
/*
|
||||
|
||||
Name:
|
||||
Why: Speed everything up
|
||||
Type: VM
|
||||
Hardware: -
|
||||
From: 2024
|
||||
Role: Nix Cache
|
||||
Notes:
|
||||
*/
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
nodes,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
name = "calculon";
|
||||
ip_pub = "193.1.99.82";
|
||||
hostname = "${name}.skynet.ie";
|
||||
in {
|
||||
imports = [
|
||||
../applications/nix_cache/nix_cache.nix
|
||||
];
|
||||
|
||||
deployment = {
|
||||
targetHost = ip_pub;
|
||||
targetPort = 22;
|
||||
targetUser = null;
|
||||
|
||||
tags = [];
|
||||
};
|
||||
|
||||
# it has two network devices so two
|
||||
skynet_dns.records = [
|
||||
{
|
||||
record = name;
|
||||
r_type = "A";
|
||||
value = ip_pub;
|
||||
server = true;
|
||||
}
|
||||
{
|
||||
record = ip_pub;
|
||||
r_type = "PTR";
|
||||
value = hostname;
|
||||
}
|
||||
];
|
||||
|
||||
services.skynet.nix-cache.host = {
|
||||
ip = ip_pub;
|
||||
name = name;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue