2021-02-08 22:26:22 +00:00
|
|
|
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2022-01-23 16:57:20 +00:00
|
|
|
{ depot, lib, pkgs, config, ... }:
|
2021-02-08 22:26:22 +00:00
|
|
|
let
|
|
|
|
inherit (depot.ops) secrets;
|
|
|
|
in {
|
|
|
|
imports = [
|
2021-03-29 22:25:50 +00:00
|
|
|
../lib/blade-router.nix
|
2021-03-29 22:28:30 +00:00
|
|
|
../lib/blade.nix
|
2021-02-08 22:26:22 +00:00
|
|
|
];
|
|
|
|
|
2021-02-09 00:00:18 +00:00
|
|
|
boot.loader.grub.device = "/dev/disk/by-id/usb-USB_SanDisk_3.2Gen1_0101da58c052a35c497ff39f7bd33f46a018bf2f2cd4503e52a89df5e552da8d661f000000000000000000005e0619e7ff90240091558107b6a8e58d-0:0";
|
2021-02-08 22:26:22 +00:00
|
|
|
|
|
|
|
# Networking!
|
|
|
|
networking = {
|
|
|
|
hostName = "blade-paris";
|
|
|
|
hostId = "41b2a198";
|
|
|
|
};
|
2021-02-09 00:00:18 +00:00
|
|
|
my.ip.tailscale = "100.117.185.118";
|
2022-09-01 23:22:16 +00:00
|
|
|
my.ip.tailscale6 = "fd7a:115c:a1e0:ab12:4843:cd96:6275:b976";
|
2021-03-12 14:47:08 +00:00
|
|
|
my.blade.bay = 2;
|
|
|
|
my.blade.macAddress = {
|
|
|
|
internal = "e4:11:5b:ac:e4:8a";
|
|
|
|
storage = "e4:11:5b:ac:e4:8e";
|
|
|
|
internet = "e4:11:5b:ac:e4:8c";
|
|
|
|
};
|
2021-03-28 15:27:46 +00:00
|
|
|
my.deploy.enable = false;
|
2021-02-09 01:17:54 +00:00
|
|
|
|
|
|
|
services.ceph = {
|
|
|
|
mon.enable = true;
|
2021-02-09 22:29:11 +00:00
|
|
|
osd = {
|
|
|
|
enable = true;
|
|
|
|
daemons = [ "2" ];
|
|
|
|
};
|
2021-02-09 01:17:54 +00:00
|
|
|
};
|
2021-03-20 01:08:33 +00:00
|
|
|
|
2021-03-29 22:24:57 +00:00
|
|
|
my.blade-router = {
|
|
|
|
addresses.linknet = {
|
|
|
|
v4 = { local = "195.74.55.23"; remote = "195.74.55.22"; };
|
|
|
|
v6 = {
|
|
|
|
local = "2a03:ee40:8080:9:2::2";
|
|
|
|
remote = "2a03:ee40:8080:9:2::1";
|
|
|
|
};
|
2021-03-20 01:08:33 +00:00
|
|
|
};
|
2021-03-29 22:24:57 +00:00
|
|
|
|
|
|
|
addresses.br-public = {
|
|
|
|
v4.addr = "92.118.28.253";
|
|
|
|
v6.addr = "2a09:a441::fffe";
|
2021-03-29 21:36:03 +00:00
|
|
|
};
|
2021-03-29 22:04:26 +00:00
|
|
|
|
2021-03-29 22:24:57 +00:00
|
|
|
vrrp.priority = 50;
|
2021-03-29 22:04:26 +00:00
|
|
|
};
|
2021-02-08 22:26:22 +00:00
|
|
|
}
|