change types
This commit is contained in:
parent
848cb4c5c7
commit
56defe7904
1 changed files with 4 additions and 3 deletions
|
|
@ -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}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue