summary refs log tree commit diff stats
path: root/modules/by-name/co/coredump/module.nix
blob: ce28ed9aed45095f4d6d4fc84f5376e8d335920c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  config,
  lib,
  ...
}: let
  cfg = config.vhack.systemd.coredump;
in {
  options.vhack.systemd.coredump = {
    # NOTE(@bpeetz): Enabled by default, because that is what NixOS also does. <2024-12-25>
    enable = (lib.mkEnableOption "oomd") // {default = true;};
  };

  config = lib.mkIf cfg.enable {
    users = {
      groups.systemd-coredump.gid = config.vhack.constants.ids.gids.systemd-coredump;
    };
  };
}