Fix astral
This commit is contained in:
parent
b3be9bbad9
commit
5bfddfb4ab
2 changed files with 9 additions and 8 deletions
|
|
@ -1,7 +1,8 @@
|
||||||
{ nixosModules, modulesPath, lib, config, pkgs, ... }: {
|
{ nixosModules, modulesPath, lib, pkgs, ... }: {
|
||||||
imports = with nixosModules; [
|
imports = [
|
||||||
"${modulesPath}/virtualisation/amazon-image.nix"
|
"${modulesPath}/virtualisation/amazon-image.nix"
|
||||||
nettika
|
nixosModules.nettika
|
||||||
|
nixosModules.promptmoji
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader.grub.device = lib.mkForce "/dev/nvme0n1";
|
boot.loader.grub.device = lib.mkForce "/dev/nvme0n1";
|
||||||
|
|
@ -17,7 +18,6 @@
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "astral";
|
hostName = "astral";
|
||||||
domain = "recipes.leaf.ninja";
|
|
||||||
firewall.allowedTCPPorts = [ 80 443 ];
|
firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
};
|
};
|
||||||
|
|
@ -31,9 +31,9 @@
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"${config.networking.domain}".extraConfig = ''
|
"astral.leaf.ninja".extraConfig = ''
|
||||||
reverse_proxy localhost:8008
|
respond "astral is online"
|
||||||
header Strict-Transport-Security "max-age=63072000; includeSubDomains;"
|
header Strict-Transport-Security: "max-age=63072000; includeSubDomains"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -63,7 +63,7 @@
|
||||||
|
|
||||||
documentation.man.generateCaches = false;
|
documentation.man.generateCaches = false;
|
||||||
|
|
||||||
promptEmoji = "✴️";
|
promptSymbol = "✴️";
|
||||||
|
|
||||||
time.timeZone = "America/Los_Angeles";
|
time.timeZone = "America/Los_Angeles";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,5 +12,6 @@ in {
|
||||||
astral = nixosSystem {
|
astral = nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [ ./astral ];
|
modules = [ ./astral ];
|
||||||
|
specialArgs = { inherit (self) nixosModules; };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue