diff --git a/modules/wsl-conf.nix b/modules/wsl-conf.nix index cb870c7c..bbbbcecd 100644 --- a/modules/wsl-conf.nix +++ b/modules/wsl-conf.nix @@ -81,14 +81,19 @@ with lib; { }; }; - config = mkIf config.wsl.enable { + config = mkMerge [ + { + environment.systemPackages = [ pkgs.powershell ]; + } + (mkIf config.wsl.enable { - environment.etc."wsl.conf".text = generators.toINI { } config.wsl.wslConf; + environment.etc."wsl.conf".text = generators.toINI { } config.wsl.wslConf; - warnings = (optional (config.wsl.wslConf.boot.systemd && !config.wsl.nativeSystemd) - "systemd is enabled in wsl.conf, but wsl.nativeSystemd is not enabled. Unless you did this on purpos, this WILL make your system UNBOOTABLE!" - ); + warnings = (optional (config.wsl.wslConf.boot.systemd && !config.wsl.nativeSystemd) + "systemd is enabled in wsl.conf, but wsl.nativeSystemd is not enabled. Unless you did this on purpos, this WILL make your system UNBOOTABLE!" + ); - }; + }) + ]; }