diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 947ca31..d5c037e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,10 +50,10 @@ jobs: - name: Build new ${{ matrix.system }} system shell: bash + env: + HOME: /tmp run: | set -o pipefail - rm -rf /homeless-shelter - export HOME=$(pwd) nix build \ ".#top.${{ matrix.system }}" \ --profile ./profile \ diff --git a/flake.nix b/flake.nix index 440d5c8..d7a1a64 100644 --- a/flake.nix +++ b/flake.nix @@ -77,14 +77,9 @@ rec { # Use nixpkgs-fmt for 'nix fmt' formatter = forAllSystems (system: nixpkgs.legacyPackages."${system}".nixpkgs-fmt); - buildPhase = forAllSystems (system: nixpkgs.legacyPackages."${system}".stdenv.mkDerivation { - buildPhase = '' - export HOME=$(pwd) - ''; - }); # setup devshells against shell.nix - # devShells = forAllSystems (pkgs: import ./shell.nix { inherit pkgs; }); + devShells = forAllSystems (pkgs: import ./shell.nix { inherit pkgs; }); # extend lib with my custom functions lib = nixpkgs.lib.extend (