Skip to content

Commit

Permalink
wsl-conf: warn when networking.extraHosts has no effect
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Mar 26, 2023
1 parent 73b1787 commit 9df68f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/wsl-conf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@ with lib; {

environment.etc."wsl.conf".text = generators.toINI { } config.wsl.wslConf;

warnings = (optional (config.wsl.wslConf.boot.systemd && !config.wsl.nativeSystemd)
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!"
);
++ lib.optional (config.wsl.wslConf.network.generateHosts && config.networking.extraHosts != "")
"networking.extraHosts has no effect if wsl.wslConf.network.generateHosts is true.";

};

Expand Down

0 comments on commit 9df68f9

Please sign in to comment.