blob: ca33293988f4c48cc2955f601c0c86d12e3623cf (
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.soispha.systemd.oomd;
in {
options.soispha.systemd.oomd = {
enable = (lib.mkEnableOption "oomd") // {default = config.systemd.oomd.enable;};
};
config = lib.mkIf cfg.enable {
users = {
users.systemd-oom.uid = config.soispha.constants.ids.uids.systemd-oom;
groups.systemd-oom.gid = config.soispha.constants.ids.gids.systemd-oom;
};
};
}
|