summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/wsl-distro.nix13
1 files changed, 6 insertions, 7 deletions
diff --git a/modules/wsl-distro.nix b/modules/wsl-distro.nix
index 1b89a84..ac763d7 100644
--- a/modules/wsl-distro.nix
+++ b/modules/wsl-distro.nix
@@ -80,13 +80,6 @@ in
"resolv.conf".enable = false;
})
];
-
- systemPackages = [
- (pkgs.runCommand "wslpath" { } ''
- mkdir -p $out/bin
- ln -s /init $out/bin/wslpath
- '')
- ];
};
# dhcp is handled by windows
@@ -189,6 +182,12 @@ in
# Include Windows %PATH% in Linux $PATH.
environment.extraInit = mkIf cfg.interop.includePath ''PATH="$PATH:$WSLPATH"'';
+ environment.systemPackages = [
+ (pkgs.runCommand "wslpath" { } ''
+ mkdir -p $out/bin
+ ln -s /init $out/bin/wslpath
+ '')
+ ];
})
(mkIf cfg.nativeSystemd {
wsl.wslConf = {