Skip to content

Commit

Permalink
fix(wsl): remove patch thats now part of NixOS-WSL
Browse files Browse the repository at this point in the history
  • Loading branch information
meatcar committed Aug 31, 2024
1 parent 8d21629 commit 431e037
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions systems/wsl-nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,26 +48,6 @@
isNormalUser = true;
};

# TODO fix for https://github.com/nix-community/NixOS-WSL/issues/185
systemd.services.nixs-wsl-systemd-fix = {
description = "Fix the /dev/shm symlink to be a mount";
unitConfig = {
DefaultDependencies = "no";
Before = ["sysinit.target" "systemd-tmpfiles-setup-dev.service" "systemd-tmpfiles-setup.service" "systemd-sysctl.service"];
ConditionPathExists = "/dev/shm";
ConditionPathIsSymbolicLink = "/dev/shm";
ConditionPathIsMountPoint = "/run/shm";
};
serviceConfig = {
Type = "oneshot";
ExecStart = [
"${pkgs.coreutils-full}/bin/rm /dev/shm"
"/run/wrappers/bin/mount --bind -o X-mount.mkdir /run/shm /dev/shm"
];
};
wantedBy = ["sysinit.target"];
};

# override nixos-wsl startMenuLaunchers to pull in home-manager ones
wsl.startMenuLaunchers = false; # we do it ourselves
system.activationScripts.copy-launchers = pkgs.lib.stringAfter [] ''
Expand Down

0 comments on commit 431e037

Please sign in to comment.