-
-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Direct people to upgrade their systems first and link to support channels just in case.
- Loading branch information
Showing
3 changed files
with
67 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
./recovery.nix | ||
./systemd | ||
./version.nix | ||
./welcome.nix | ||
./wsl-conf.nix | ||
./wsl-distro.nix | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ lib, pkgs, config, ... }: | ||
let | ||
welcomeMessage = pkgs.writeText "nixos-wsl-welcome-message" '' | ||
Welcome to your new NixOS-WSL system! | ||
Please run `sudo nix-channel --update` and `sudo nixos-rebuild switch` now, to ensure you're running the latest NixOS and NixOS-WSL versions. | ||
If you run into issues, please report them on our Github page at https://github.com/nix-community/NixOS-WSL or come talk to us on Matrix at #wsl:nixos.org. | ||
❄️ Enjoy NixOS-WSL! ❄️ | ||
Note: this message will disappear after you rebuild your system. If you want to see it again, run `nixos-wsl-welcome`. | ||
''; | ||
welcome = pkgs.writeShellScriptBin "nixos-wsl-welcome" '' | ||
cat ${welcomeMessage} | ||
''; | ||
in | ||
{ | ||
config = lib.mkIf config.wsl.enable { | ||
environment.systemPackages = [ welcome ]; | ||
}; | ||
} |