summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authornzbr <mail@nzbr.de>2023-07-24 05:13:46 +0200
committernzbr <mail@nzbr.de>2023-07-24 05:13:46 +0200
commit72b8000749c0cb0f8a3de3f77b0113d71de68cd5 (patch)
treed73834efbfc923f9de9da5ccc96685a534406947 /modules
parent0c872dac648a76e4a768c7a943223c19ac8ad7be (diff)
Only include wslpath derivation on syschdemd
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 = {