change types

This commit is contained in:
zackartz 2024-05-05 16:56:29 -04:00
parent 848cb4c5c7
commit 56defe7904
No known key found for this signature in database
GPG key ID: 5B53E53A9A514DBA

View file

@ -29,6 +29,7 @@
config, config,
lib, lib,
pkgs, pkgs,
self,
... ...
}: }:
with lib; let with lib; let
@ -38,14 +39,14 @@
enable = mkEnableOption "Enables the Blog Site"; enable = mkEnableOption "Enables the Blog Site";
domain = mkOption rec { domain = mkOption rec {
type = type.str; type = types.str;
default = "zackmyers.io"; default = "zackmyers.io";
example = default; example = default;
description = "The domain name for the website"; description = "The domain name for the website";
}; };
ssl = mkOption rec { ssl = mkOption rec {
type = type.bool; type = types.bool;
default = true; default = true;
example = default; example = default;
description = "Whether to enable SSL on the domain or not"; description = "Whether to enable SSL on the domain or not";
@ -56,7 +57,7 @@
services.nginx.virtualHosts.${cfg.domain} = { services.nginx.virtualHosts.${cfg.domain} = {
forceSSL = cfg.ssl; forceSSL = cfg.ssl;
enableACME = cfg.ssl; enableACME = cfg.ssl;
root = "${packages.${pkgs.system}.default}"; root = "${self.packages.${pkgs.system}.default}";
}; };
}; };
}; };