fix: Fixed issues with the vagrant module not loading.

This commit is contained in:
Spencer Brower
2022-10-06 14:42:03 -04:00
parent c0b246d311
commit 367bf7508a

View File

@@ -1,5 +1,8 @@
{ config, hostName ? "nixos", ... }: { { config, lib, hostName ? "nixos", ... }:
config = mkMerge [ let cfg = config.services.laravel;
in
{
config = lib.mkMerge [
{ {
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
@@ -42,11 +45,11 @@
}; };
}; };
} }
mkIf (lib.mkIf
services.laravel.enable cfg.enable
{ {
services.laravel.root = mkDefault /vagrant; services.laravel.root = lib.mkDefault /vagrant;
services.laravel.domain = mkDefault (config.networking.hostName + ".local"); services.laravel.domain = lib.mkDefault (hostName + ".local");
} })
]; ];
} }