From 5bfddfb4ab225e2a363606dd7b5f03b1f63589c0 Mon Sep 17 00:00:00 2001 From: Nettika Date: Wed, 8 Oct 2025 17:14:28 -0700 Subject: [PATCH] Fix astral --- hosts/astral/default.nix | 16 ++++++++-------- hosts/default.nix | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/hosts/astral/default.nix b/hosts/astral/default.nix index e84c591..9bd5a71 100644 --- a/hosts/astral/default.nix +++ b/hosts/astral/default.nix @@ -1,7 +1,8 @@ -{ nixosModules, modulesPath, lib, config, pkgs, ... }: { - imports = with nixosModules; [ +{ nixosModules, modulesPath, lib, pkgs, ... }: { + imports = [ "${modulesPath}/virtualisation/amazon-image.nix" - nettika + nixosModules.nettika + nixosModules.promptmoji ]; boot.loader.grub.device = lib.mkForce "/dev/nvme0n1"; @@ -17,7 +18,6 @@ networking = { hostName = "astral"; - domain = "recipes.leaf.ninja"; firewall.allowedTCPPorts = [ 80 443 ]; networkmanager.enable = true; }; @@ -31,9 +31,9 @@ services.caddy = { enable = true; virtualHosts = { - "${config.networking.domain}".extraConfig = '' - reverse_proxy localhost:8008 - header Strict-Transport-Security "max-age=63072000; includeSubDomains;" + "astral.leaf.ninja".extraConfig = '' + respond "astral is online" + header Strict-Transport-Security: "max-age=63072000; includeSubDomains" ''; }; }; @@ -63,7 +63,7 @@ documentation.man.generateCaches = false; - promptEmoji = "✴️"; + promptSymbol = "✴️"; time.timeZone = "America/Los_Angeles"; diff --git a/hosts/default.nix b/hosts/default.nix index b17a2e7..3795651 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -12,5 +12,6 @@ in { astral = nixosSystem { system = "x86_64-linux"; modules = [ ./astral ]; + specialArgs = { inherit (self) nixosModules; }; }; }