summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configuration.nix2
-rw-r--r--modules/docker-desktop.nix8
2 files changed, 7 insertions, 3 deletions
diff --git a/configuration.nix b/configuration.nix
index 8ecca30..26f1680 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -18,7 +18,7 @@ in
startMenuLaunchers = true;
# Enable integration with Docker Desktop (needs to be installed)
- # docker.enable = true;
+ # docker-desktop.enable = true;
# Enable native Docker support within NixOS
# docker-native.enable = true;
diff --git a/modules/docker-desktop.nix b/modules/docker-desktop.nix
index 3e0d200..d822526 100644
--- a/modules/docker-desktop.nix
+++ b/modules/docker-desktop.nix
@@ -1,13 +1,17 @@
{ config, lib, pkgs, ... }:
with builtins; with lib; {
- options.wsl.docker = with types; {
+ imports = [
+ (mkRenamedOptionModule [ "wsl" "docker" ] [ "wsl" "docker-desktop" ])
+ ];
+
+ options.wsl.docker-desktop = with types; {
enable = mkEnableOption "Docker Desktop integration";
};
config =
let
- cfg = config.wsl.docker;
+ cfg = config.wsl.docker-desktop;
in
mkIf (config.wsl.enable && cfg.enable) {