mirror of
https://github.com/sbrow/nix.git
synced 2026-02-27 13:21:45 -05:00
fix: Fixed issues with the vagrant module not loading.
This commit is contained in:
@@ -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");
|
||||||
}
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user