diff --git a/hosts/nixos-wsl/configuration.nix b/hosts/nixos-wsl/configuration.nix index 1c28a0d..44d0732 100644 --- a/hosts/nixos-wsl/configuration.nix +++ b/hosts/nixos-wsl/configuration.nix @@ -7,6 +7,7 @@ profile.base.enable = true; binfmt.enable = true; }; + wsl.interop.register = true; networking.networkmanager.enable = false; programs.gnupg.agent = { diff --git a/system/hardware/binfmt.nix b/system/hardware/binfmt.nix index 2bc75d1..64afd3f 100644 --- a/system/hardware/binfmt.nix +++ b/system/hardware/binfmt.nix @@ -33,10 +33,5 @@ in (lib.mkIf enable { boot.binfmt = {inherit emulatedSystems;}; }) - - # keep Windows binfmt registration on wsl - (lib.mkIf (cfg.enable && lib.hasAttrByPath [ "wsl" "interop" "register" ] options) { - wsl.interop.register = lib.mkDefault true; - }) ]; }