From a2a6c49c5cf0feae3f92a1826544d73deb01ce9d Mon Sep 17 00:00:00 2001 From: Quentin Boyer Date: Wed, 24 Jul 2024 21:41:34 +0200 Subject: [PATCH] gui: Enable systemd-oomd --- gui/nixos.nix | 7 +++++++ gui/wm/default.nix | 1 + 2 files changed, 8 insertions(+) diff --git a/gui/nixos.nix b/gui/nixos.nix index 2f37f9b..5aa69f0 100644 --- a/gui/nixos.nix +++ b/gui/nixos.nix @@ -1,5 +1,12 @@ { pkgs, config, ... }: { + systemd.oomd = { + enable = true; + enableUserSlices = true; + enableRootSlice = true; + enableSystemSlice = true; + }; + services.gnome.gnome-keyring.enable = true; services.flatpak.enable = true; xdg.portal = { diff --git a/gui/wm/default.nix b/gui/wm/default.nix index 376a187..47791fe 100644 --- a/gui/wm/default.nix +++ b/gui/wm/default.nix @@ -139,6 +139,7 @@ }; startup = [ + { command = lib.getExe pkgs.sway-assign-cgroups; } { command = "signal-desktop"; } { command = "discord"; } { command = "firefox"; }