aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix19
1 files changed, 12 insertions, 7 deletions
diff --git a/flake.nix b/flake.nix
index fcbd766..399e4c4 100644
--- a/flake.nix
+++ b/flake.nix
@@ -46,7 +46,12 @@
)
// {
nixosModules.default =
- { lib, config, pkgs, ... }:
+ {
+ lib,
+ config,
+ pkgs,
+ ...
+ }:
let
cfg = config.services.site;
inherit (lib)
@@ -65,11 +70,11 @@
description = "Domain to serve.";
};
- default = lib.mkOption {
- type = types.bool;
- default = false;
- description = "Make this vhost the default for nginx.";
- };
+ default = lib.mkOption {
+ type = types.bool;
+ default = false;
+ description = "Make this vhost the default for nginx.";
+ };
package = mkOption {
type = types.package;
@@ -106,7 +111,7 @@
in
{
root = "${cfg.package}/share/web";
- default = cfg.default;
+ default = cfg.default;
locations."/" = {
tryFiles = "$uri $uri/ /index.html";