summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2022-12-14 23:08:45 +0300
committerGitHub <noreply@github.com>2022-12-14 23:08:45 +0300
commit76286bf034c6bcef68c7f76126e9b9671ab1ae7a (patch)
tree1199928978d2778f90240bfb8a1207b91b132489 /modules
parent9bde770148c091133794fc5748d67330b19ada4b (diff)
parenteb4b4b54682d76c72063542efe60af6478771f8e (diff)
Merge pull request #178 from K900/mountage
Mount propagation fixes (and also oomd)
Diffstat (limited to 'modules')
-rw-r--r--modules/wsl-distro.nix7
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;
+ })
]);
}