diff --git a/nixos/modules/virtualisation/vagrant.nix b/nixos/modules/virtualisation/vagrant.nix index 46eb34e..2f66e14 100644 --- a/nixos/modules/virtualisation/vagrant.nix +++ b/nixos/modules/virtualisation/vagrant.nix @@ -44,6 +44,17 @@ in workstation = false; }; }; + + environment.systemPackages = with pkgs; [ + direnv + mcfly + ]; + + programs.bash.shellInit = '' + eval "$(direnv hook bash)"; + eval "$(mcfly init bash)"; + cd /vagrant; + ''; } (lib.mkIf cfg.enable diff --git a/nixos/modules/web-apps/laravel.nix b/nixos/modules/web-apps/laravel.nix index 16927da..b00c98c 100644 --- a/nixos/modules/web-apps/laravel.nix +++ b/nixos/modules/web-apps/laravel.nix @@ -1,6 +1,6 @@ # TODO: Install private shell key? # TODO: git config via HomeManager? -{ config, hostName, lib, pkgs, nixpkgs, ... }: +{ config, hostName ? "nixos", lib, pkgs, nixpkgs, ... }: let cfg = config.services.laravel;