Skip to content

Commit

Permalink
install docker on wsl
Browse files Browse the repository at this point in the history
  • Loading branch information
ecarlson94 committed Feb 16, 2024
1 parent ecf712c commit 91547e7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion machines/wsl/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,20 @@

environment.pathsToLink = [ "/share/zsh" ];

# Docker
virtualisation.docker.enable = true;

virtualisation.docker.rootless = {
enable = true;
setSocketVariable = true;
};

programs.zsh.enable = true;

users.users = {
nixos.shell = pkgs.zsh;
nixos = {
shell = pkgs.zsh;
extraGroups = [ "docker" ];
};
};
}

0 comments on commit 91547e7

Please sign in to comment.