From cfcac9bff153391414440c6c15e9d97e6d882230 Mon Sep 17 00:00:00 2001 From: Spencer Brower Date: Thu, 6 Oct 2022 14:36:36 -0400 Subject: [PATCH] feat: Added argument to vagrant. --- nixos/modules/virtualisation/vagrant.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nixos/modules/virtualisation/vagrant.nix b/nixos/modules/virtualisation/vagrant.nix index c94d7e0..60020d1 100644 --- a/nixos/modules/virtualisation/vagrant.nix +++ b/nixos/modules/virtualisation/vagrant.nix @@ -1,4 +1,4 @@ -{ config, ... }: { +{ config, hostName ? "nixos", ... }: { config = { nix.settings.experimental-features = [ "nix-command" "flakes" ]; @@ -11,6 +11,7 @@ options = [ "rw,uid=1001,gid=60,_netdev" ]; # mount as vagrant:nginx }; + networking.hostName = hostName; networking.extraHosts = '' 127.0.0.1 ${config.networking.hostName}.local ''; @@ -39,5 +40,8 @@ workstation = false; }; }; - }; + } /*// (mkIf services.laravel.enable { + services.laravel.root = mkDefault /vagrant; + services.laravel.domain = mkDefault (config.networking.hostName + ".local"); + })*/; }