From 815a45f6b5cb5e9ad76381cbcc193347eb1ec455 Mon Sep 17 00:00:00 2001 From: Xe Date: Fri, 15 Apr 2022 11:07:21 -0400 Subject: [PATCH] add ontos Signed-off-by: Xe --- flake.nix | 20 ++++++++++++++++++++ hardware/alrest/default.nix | 3 ++- hardware/alrest/monitoring.nix | 16 ++++++++++++++++ hosts/ontos/configuration.nix | 10 ++++++++++ hosts/ontos/default.nix | 10 ++++++++++ hosts/ontos/motd | 9 +++++++++ 6 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 hardware/alrest/monitoring.nix create mode 100644 hosts/ontos/configuration.nix create mode 100755 hosts/ontos/default.nix create mode 100644 hosts/ontos/motd diff --git a/flake.nix b/flake.nix index 905d849..ec0e58c 100644 --- a/flake.nix +++ b/flake.nix @@ -74,6 +74,7 @@ nixosConfigurations = { # avalon chrysalis = mkSystem [ ./hosts/chrysalis ./hardware/location/YOW ]; + logos = mkSystem [ ./hosts/logos ./hardware/alrest @@ -81,6 +82,13 @@ waifud.nixosModules.x86_64-linux.waifud-runner ]; + ontos = mkSystem [ + ./hosts/ontos + ./hardware/alrest + ./hardware/location/YOW + waifud.nixosModules.x86_64-linux.waifud-runner + ]; + # cloud firgu = mkSystem [ ./hosts/firgu ]; @@ -124,6 +132,18 @@ }; }; + deploy.nodes.ontos = { + hostname = "192.168.2.34"; + sshUser = "root"; + fastConnection = true; + + profiles.system = { + user = "root"; + path = deploy-rs.lib.x86_64-linux.activate.nixos + self.nixosConfigurations.ontos; + }; + }; + # deploy.nodes.hugo = { # hostname = "10.77.129.6"; # sshUser = "root"; diff --git a/hardware/alrest/default.nix b/hardware/alrest/default.nix index b9dc84e..a848b4c 100644 --- a/hardware/alrest/default.nix +++ b/hardware/alrest/default.nix @@ -1,7 +1,8 @@ { config, pkgs, ... }: { - imports = [ ./hardware-configuration.nix ./zfs.nix ./zrepl.nix ]; + imports = + [ ./monitoring.nix ./hardware-configuration.nix ./zfs.nix ./zrepl.nix ]; within.users.enableSystem = true; diff --git a/hardware/alrest/monitoring.nix b/hardware/alrest/monitoring.nix new file mode 100644 index 0000000..4f65cf8 --- /dev/null +++ b/hardware/alrest/monitoring.nix @@ -0,0 +1,16 @@ +{ config, pkgs, ... }: + +let metadata = pkgs.callPackage ../../../ops/metadata/peers.nix { }; +in { + services.prometheus = { + exporters = { + node = { + enable = true; + enabledCollectors = [ "systemd" ]; + }; + wireguard = { + enable = true; + }; + }; + }; +} diff --git a/hosts/ontos/configuration.nix b/hosts/ontos/configuration.nix new file mode 100644 index 0000000..2a3e574 --- /dev/null +++ b/hosts/ontos/configuration.nix @@ -0,0 +1,10 @@ +{ config, pkgs, ... }: + +{ + users.motd = builtins.readFile ./motd; + services.tailscale.port = 15429; + + networking.hostName = "ontos"; + networking.hostId = "07602ecc"; + #within.backups.repo = "57196@usw-s007.rsync.net:ontos"; +} diff --git a/hosts/ontos/default.nix b/hosts/ontos/default.nix new file mode 100755 index 0000000..bdcbf23 --- /dev/null +++ b/hosts/ontos/default.nix @@ -0,0 +1,10 @@ +{ config, pkgs, ... }: + +{ + users.motd = builtins.readFile ./motd; + services.tailscale.port = 15429; + + networking.hostName = "ontos"; + networking.hostId = "07602ecc"; + within.backups.repo = "57196@usw-s007.rsync.net:ontos"; +} diff --git a/hosts/ontos/motd b/hosts/ontos/motd new file mode 100644 index 0000000..874c00b --- /dev/null +++ b/hosts/ontos/motd @@ -0,0 +1,9 @@ + █████ +███████ +███████ + █████ + █████ + █████ + █████ +"I am Monado. I was here at the beginning. And I will proclaim the end." +