fixed bugs with cirrostratus.

This commit is contained in:
Gabe Venberg 2024-08-07 15:24:17 -05:00
parent fa96291493
commit f37f68c70e
7 changed files with 36 additions and 15 deletions

View file

@ -13,6 +13,7 @@ inputs.nixpkgs.lib.nixosSystem {
inputs.disko.nixosModules.disko
./disk-config.nix
./hardware-configuration.nix
./nginx.nix
../../configs/nixos/common.nix
../../configs/nixos/tailscale.nix
../../configs/nixos/sshd.nix
@ -29,6 +30,7 @@ inputs.nixpkgs.lib.nixosSystem {
fullName = "Gabe Venberg";
gui.enable = false;
};
boot.zfs.extraPools = ["storage"];
networking.hostName = "cirrostratus"; # Define your hostname.
networking.hostId = "1b9da0b9";
networking.useNetworkd = true;
@ -52,6 +54,11 @@ inputs.nixpkgs.lib.nixosSystem {
sops = lib.mkIf (inputs ? nix-secrets) {
secrets = {
duckdns-token.sopsFile = "${inputs.nix-secrets}/duckdns.yaml";
gabevenberg-draft-credentials = {
sopsFile = "${inputs.nix-secrets}/draft.gabevenberg.com";
format = "binary";
owner = config.services.nginx.user;
};
};
};

View file

@ -66,13 +66,7 @@
mode = "mirror";
rootFsOptions = {
compression = "zstd";
};
datasets = {
dataset = {
type = "zfs_fs";
options.mountpoint = "/storage/dataset";
};
mountpoint = "/storage";
};
};
};

View file

@ -0,0 +1,22 @@
{
inputs,
config,
pkgs,
lib,
...
}: {
imports = [
../../configs/nixos/nginx.nix
];
services.nginx.virtualHosts."gabevenberg.com" = {
enableACME = true;
forceSSL = true;
root = "/var/www/gabevenberg.com";
};
services.nginx.virtualHosts."draft.gabevenberg.com" = {
enableACME = true;
forceSSL = true;
root = "/var/www/draft.gabevenberg.com";
basicAuthFile = config.sops.secrets.gabevenberg-draft-credentials.path;
};
}