Skip to content

Commit

Permalink
Revert "fix: ensure home directory is created"
Browse files Browse the repository at this point in the history
This reverts commit ed567a9.

This breaks cli tests and fly.io example
  • Loading branch information
domenkozar committed Sep 10, 2024
1 parent b47fd35 commit 1a93f87
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/modules/containers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,8 @@ let
gid = "1000";
homeDir = "/env";

mkEnsureHomeExists = pkgs.runCommand "devenv-ensure-home" { } ''
mkdir -p $out${homeDir}
'';

mkHome = path: (pkgs.runCommand "devenv-container-home" { } ''
mkdir -p $out${homeDir}
cp -R ${path}/. $out${homeDir}/
'');

Expand Down Expand Up @@ -94,6 +91,7 @@ let
gname = group;
};


mkDerivation = cfg: nix2container.nix2container.buildImage {
name = cfg.name;
tag = cfg.version;
Expand All @@ -114,7 +112,6 @@ let
})
mkEtc
mkTmp
mkEnsureHomeExists
];

maxLayers = cfg.maxLayers;
Expand Down Expand Up @@ -143,7 +140,6 @@ let
uname = "root";
gname = "root";
}
(mkPerm mkEnsureHomeExists)
];

config = {
Expand Down

0 comments on commit 1a93f87

Please sign in to comment.