summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornzbr <mail@nzbr.de>2022-10-25 19:52:18 +0200
committerGitHub <noreply@github.com>2022-10-25 19:52:18 +0200
commit7bfb8f5aa91fee30a189eae32cda8ddc465076df (patch)
tree1f08ff78bf72c9570083d0c4e6bd9761e600a6f3
parentd546cd7fd534d5208f43e7918d6ab68294f9d4dc (diff)
remove boot.isContainer (#145)
* remove boot.isContainer * use /bin/true instead of writing an empty shell script Co-authored-by: Sandro <sandro.jaeckel@gmail.com> * Update wsl-distro.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
-rw-r--r--modules/wsl-distro.nix12
1 files changed, 9 insertions, 3 deletions
diff --git a/modules/wsl-distro.nix b/modules/wsl-distro.nix
index b3437d7..9b187d1 100644
--- a/modules/wsl-distro.nix
+++ b/modules/wsl-distro.nix
@@ -50,10 +50,16 @@ with builtins; with lib;
};
};
- # WSL is closer to a container than anything else
- boot.isContainer = true;
+ # We don't need a boot loader
+ boot.loader.grub.enable = false;
+ system.build.installBootLoader = "${pkgs.coreutils}/bin/true";
+ boot.initrd.enable = false;
+ system.build.initialRamdisk = pkgs.runCommand "fake-initrd" { } ''
+ mkdir $out
+ touch $out/${config.system.boot.loader.initrdFile}
+ '';
+ system.build.initialRamdiskSecretAppender = pkgs.writeShellScriptBin "append-initrd-secrets" "";
- environment.noXlibs = lib.mkForce false; # override xlibs not being installed (due to isContainer) to enable the use of GUI apps
hardware.opengl.enable = true; # Enable GPU acceleration
environment = {