Skip to content

Commit

Permalink
deliberately introduce a side-effect
Browse files Browse the repository at this point in the history
  • Loading branch information
nzbr committed Nov 10, 2022
1 parent 101423b commit 1398bbe
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions modules/wsl-conf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
);

};
})
];

}

0 comments on commit 1398bbe

Please sign in to comment.