Skip to content

Commit

Permalink
switch nixpkgs.overlays to inline overlay (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
abehidek authored Oct 30, 2022
1 parent 8e3a9c1 commit 7cc67b6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions modules/docker-native.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,11 @@ with builtins; with lib; {
cfg = config.wsl.docker-native;
in
mkIf (config.wsl.enable && cfg.enable) {
nixpkgs.overlays = [
(self: super: {
docker = super.docker.override { iptables = pkgs.iptables-legacy; };
})
];

environment.systemPackages = with pkgs; [
docker
docker-compose
];

virtualisation.docker.package = (pkgs.docker.override { iptables = pkgs.iptables-legacy; });
virtualisation.docker.enable = true;

users.groups.docker.members = lib.mkIf cfg.addToDockerGroup [
Expand Down

0 comments on commit 7cc67b6

Please sign in to comment.