diff options
| author | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2025-07-05 12:36:42 +0200 |
|---|---|---|
| committer | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2025-07-05 12:41:34 +0200 |
| commit | 97a8700d17094f6e8e64d218e1a814f2eeb54cf5 (patch) | |
| tree | fe72dce2810da713e3dbd1bbf5b4cdee00866e14 | |
| parent | 6fdefa5e878ac5ded5c60d0399703b063d263cb4 (diff) | |
Add oomd to common config
| -rw-r--r-- | nixos/common/default.nix | 8 | ||||
| -rw-r--r-- | nixos/desktop/default.nix | 24 |
2 files changed, 18 insertions, 14 deletions
diff --git a/nixos/common/default.nix b/nixos/common/default.nix index a99eb95..b199ca5 100644 --- a/nixos/common/default.nix +++ b/nixos/common/default.nix @@ -11,8 +11,6 @@ ./services.nix ]; - - nix.settings.experimental-features = ["nix-command" "flakes"]; time.timeZone = "Europe/Amsterdam"; # Set timezone @@ -62,6 +60,12 @@ lz4 ]; + systemd.oomd = { + enable = true; + enableUserSlices = true; + enableRootSlice = true; + }; + # This option defines the first version of NixOS you have installed on this particular machine, diff --git a/nixos/desktop/default.nix b/nixos/desktop/default.nix index eb7fa46..b987376 100644 --- a/nixos/desktop/default.nix +++ b/nixos/desktop/default.nix @@ -9,21 +9,21 @@ programs = { dconf.enable = true; - thunar = { - enable = true; - plugins = with pkgs.xfce; [ - thunar-archive-plugin - thunar-media-tags-plugin - thunar-volman - ]; - }; + thunar = { + enable = true; + plugins = with pkgs.xfce; [ + thunar-archive-plugin + thunar-media-tags-plugin + thunar-volman + ]; + }; }; - # Enable CUPS to print documents. - services.printing.enable = true; + # Enable CUPS to print documents. + services.printing.enable = true; - # Enable touchpad support (enabled default in most desktopManager). - services.libinput.enable = true; + # Enable touchpad support (enabled default in most desktopManager). + services.libinput.enable = true; services = { blueman.enable = true; |
