Add updated wsl configuration

This commit is contained in:
Dave Gallant
2022-07-30 13:42:28 +00:00
parent e0b6e5782c
commit 328b2a2d95
20 changed files with 3 additions and 4 deletions

View File

@@ -0,0 +1,25 @@
{
lib,
pkgs,
config,
defaultUser,
...
}:
pkgs.substituteAll {
name = "syschdemd";
src = ./syschdemd.sh;
dir = "bin";
isExecutable = true;
buildInputs = with pkgs; [daemonize];
inherit (pkgs) daemonize;
inherit defaultUser;
inherit (config.security) wrapperDir;
fsPackagesPath = lib.makeBinPath config.system.fsPackages;
systemdWrapper = pkgs.writeShellScript "systemd-wrapper.sh" ''
mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc || true
exec systemd
'';
}