diff options
| author | K900 <me@0upti.me> | 2022-12-12 22:19:33 +0300 |
|---|---|---|
| committer | K900 <me@0upti.me> | 2022-12-13 01:03:04 +0300 |
| commit | eb4b4b54682d76c72063542efe60af6478771f8e (patch) | |
| tree | bba1f736ef64ed8d5d1c02e6a90607d75554f2d9 /modules | |
| parent | 3e733019f8194083a5a11dc89db34d7532b18223 (diff) | |
wsl-distro: disable oomd
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/wsl-distro.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/wsl-distro.nix b/modules/wsl-distro.nix index bcc6f08..0316c77 100644 --- a/modules/wsl-distro.nix +++ b/modules/wsl-distro.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, config, ... }: +{ lib, pkgs, config, options, ... }: with lib; { @@ -177,5 +177,10 @@ with lib; { ''; }; }) + # this option doesn't exist on older NixOS, so hack. + (lib.optionalAttrs (builtins.hasAttr "oomd" options.systemd) { + # systemd-oomd requires cgroup pressure info which WSL doesn't have + systemd.oomd.enable = false; + }) ]); } |
