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 = 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
|
||||
(lib.mkIf
|
||||
cfg.enable
|
||||
{
|
||||
services.laravel.root = mkDefault /vagrant;
|
||||
services.laravel.domain = mkDefault (config.networking.hostName + ".local");
|
||||
}
|
||||
services.laravel.root = lib.mkDefault /vagrant;
|
||||
services.laravel.domain = lib.mkDefault (hostName + ".local");
|
||||
})
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user