From 3dacf5844ab41cca6c2ed421576c6eefcdc2101d Mon Sep 17 00:00:00 2001 From: Spencer Brower Date: Tue, 1 Nov 2022 11:03:56 -0400 Subject: [PATCH] feat: Added mcfly and direnv to `vagrant`. --- nixos/modules/virtualisation/vagrant.nix | 11 +++++++++++ nixos/modules/web-apps/laravel.nix | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) 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;