summaryrefslogtreecommitdiff
path: root/modules/docker/native.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/docker/native.nix')
-rw-r--r--modules/docker/native.nix34
1 files changed, 0 insertions, 34 deletions
diff --git a/modules/docker/native.nix b/modules/docker/native.nix
deleted file mode 100644
index 88f48d9..0000000
--- a/modules/docker/native.nix
+++ /dev/null
@@ -1,34 +0,0 @@
-{ config, lib, pkgs, ... }:
-with builtins; with lib; {
-
- options.wsl.docker-native = with types; {
- enable = mkEnableOption "Native Docker integration in NixOS.";
-
- addToDockerGroup = mkOption {
- type = bool;
- default = config.security.sudo.wheelNeedsPassword;
- description = ''
- Wether to add the default user to the docker group.
-
- This is not recommended, if you have a password, because it essentially permits unauthenticated root access.
- '';
- };
- };
-
- config =
- let
- cfg = config.wsl.docker-native;
- in
- mkIf (config.wsl.enable && cfg.enable) {
- environment.systemPackages = with pkgs; [
- docker-compose
- ];
-
- virtualisation.docker.package = (pkgs.docker.override { iptables = pkgs.iptables-legacy; });
- virtualisation.docker.enable = true;
-
- users.groups.docker.members = lib.mkIf cfg.addToDockerGroup [
- config.wsl.defaultUser
- ];
- };
-}