diff --git a/machines/configuration.nix b/machines/configuration.nix index 57f9639..9bb9891 100644 --- a/machines/configuration.nix +++ b/machines/configuration.nix @@ -114,6 +114,15 @@ in ]; }; + lucia = nixosSystem { + system = "aarch64-linux"; + specialArgs.inputs = inputs; + modules = defaultModules ++ [ + ./lucia/configuration.nix + ./lucia/hardware_configuration.nix + ]; + }; + fanny = nixosSystem { system = "x86_64-linux"; specialArgs.inputs = inputsMod; @@ -152,12 +161,12 @@ in ]; }; - lucia = nixosSystem { - system = "aarch64-linux"; + uptimekuma = nixosSystem { + system = "x86_64-linux"; specialArgs.inputs = inputs; - modules = defaultModules ++ [ - ./lucia/configuration.nix - ./lucia/hardware_configuration.nix + specialArgs.self = self; + modules = makeMicroVM "uptimekuma" "10.0.0.12" "D0:E5:CA:F0:D7:E8" [ + ./uptimekuma/configuration.nix ]; }; diff --git a/machines/uptimekuma/configuration.nix b/machines/uptimekuma/configuration.nix new file mode 100644 index 0000000..bf80e46 --- /dev/null +++ b/machines/uptimekuma/configuration.nix @@ -0,0 +1,37 @@ +{ config, lib, pkgs, inputs, ... }: + +with lib; + +{ + networking = { + hostName = mkDefault "uptimekuma"; + useDHCP = false; + nameservers = [ "1.1.1.1" ]; + }; + + imports = [ + ../modules/malobeo_user.nix + ../modules/sshd.nix + ]; + + networking.firewall.allowedTCPPorts = [ 80 ]; + + services.nginx = { + enable = true; + virtualHosts."status.malobeo.org" = { + locations."/" = { + proxyPass = "http://127.0.0.1:3001"; + extraConfig = '' + ''; + }; + + }; + }; + + services.uptime-kuma = { + enable = true; + }; + + system.stateVersion = "22.11"; # Did you read the comment? +} +