diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/flake.nix b/flake.nix index 5f09607..819003f 100644 --- a/flake.nix +++ b/flake.nix @@ -16,7 +16,12 @@ inherit nixpkgs home-manager system; }; in - flake-utils.lib.eachDefaultSystem (system: { - homeConfigurations = mkHome { inherit system; }; - }); + flake-utils.lib.eachDefaultSystem (system: + let pkgs = nixpkgs.legacyPackages.${system}; + in { + devShells.default = pkgs.mkShell { + packages = [ pkgs.bash ]; + }; + homeConfigurations = mkHome { inherit system; }; + }); } diff --git a/home.nix b/home.nix index 063f792..a1ad7c4 100644 --- a/home.nix +++ b/home.nix @@ -101,6 +101,10 @@ in # Let Home Manager install and manage itself. home-manager.enable = true; + git = { + enable = true; + }; + lazygit = { enable = true; settings = { diff --git a/scripts/switch b/scripts/switch index eb9f456..f84346a 100755 --- a/scripts/switch +++ b/scripts/switch @@ -22,7 +22,7 @@ function build_macos_x86() { } function activate_home() { - nix run nixpkgs#bash -- ./result/activate + nix develop --command ./result/activate } if [ "${BASH_SOURCE[0]}" = "${0}" ]; then