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