summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/build-tarball.nix6
-rw-r--r--modules/installer.nix1
2 files changed, 5 insertions, 2 deletions
diff --git a/modules/build-tarball.nix b/modules/build-tarball.nix
index feba78d..5eba52d 100644
--- a/modules/build-tarball.nix
+++ b/modules/build-tarball.nix
@@ -75,8 +75,10 @@ in
# These options make no sense without the wsl-distro module anyway
system.build.tarball = pkgs.callPackage "${nixpkgs}/nixos/lib/make-system-tarball.nix" {
- # No contents, structure will be added by prepare script
- contents = [ ];
+
+ contents = [
+ { source = config.users.users.root.shell; target = "/nix/nixos-wsl/entrypoint"; }
+ ];
fileName = "nixos-wsl-${pkgs.hostPlatform.system}";
diff --git a/modules/installer.nix b/modules/installer.nix
index 3fd404f..63bdc9e 100644
--- a/modules/installer.nix
+++ b/modules/installer.nix
@@ -56,6 +56,7 @@ with builtins; with lib; {
{ source = passwd; target = "/etc/passwd"; }
{ source = "${pkgs.busybox}/bin/busybox"; target = "/bin/sh"; }
{ source = "${pkgs.busybox}/bin/busybox"; target = "/bin/mount"; }
+ { source = "${installer}"; target = "/nix/nixos-wsl/entrypoint"; }
];
extraCommands = pkgs.writeShellScript "prepare" ''