aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name/co
diff options
context:
space:
mode:
Diffstat (limited to 'modules/by-name/co')
-rw-r--r--modules/by-name/co/constants/module.nix68
-rw-r--r--modules/by-name/co/coredump/module.nix18
2 files changed, 0 insertions, 86 deletions
diff --git a/modules/by-name/co/constants/module.nix b/modules/by-name/co/constants/module.nix
deleted file mode 100644
index fed14d3..0000000
--- a/modules/by-name/co/constants/module.nix
+++ /dev/null
@@ -1,68 +0,0 @@
-# This file is inspired by the `nixos/modules/misc/ids.nix`
-# file in nixpkgs.
-{lib, ...}: {
- options.vhack.constants = {
- ids.uids = lib.mkOption {
- internal = true;
- description = ''
- The user IDs used in the vhack.eu nixos config.
- '';
- type = lib.types.attrsOf lib.types.int;
- };
- ids.gids = lib.mkOption {
- internal = true;
- description = ''
- The group IDs used in the vhack.eu nixos config.
- '';
- type = lib.types.attrsOf lib.types.int;
- };
- };
-
- config.vhack.constants = {
- ids.uids = {
- acme = 328;
- dhcpcd = 329;
- nscd = 330;
- sshd = 331;
- systemd-oom = 332;
- nix-sync = 334;
- redis-peertube = 990;
- peertube = 992; # TODO Sort correctly
- mastodon = 996;
- redis-mastodon = 991;
- matrix-synapse = 224;
- mautrix-whatsapp = 225;
- knot-resolver = 997;
- redis-rspamd = 989;
- rspamd = 225;
- opendkim = 221;
- virtualMail = 5000;
- etebase-server = 998;
-
- # As per the NixOS file, the uids should not be greater or equal to 400;
- };
- ids.gids = {
- acme = 328;
- dhcpcd = 329;
- nscd = 330;
- sshd = 331;
- systemd-oom = 332;
- resolvconf = 333; # This group is not matched to an user?
- nix-sync = 334;
- systemd-coredump = 151; # matches systemd-coredump user
- redis-peertube = 990;
- peertube = 992;
- mastodon = 996;
- redis-mastodon = 991;
- matrix-synapse = 224;
- knot-resolver = 997;
- redis-rspamd = 989;
- rspamd = 225;
- opendkim = 221;
- virtualMail = 5000;
- etebase-server = 998;
-
- # The gid should match the uid. Thus should not be >= 400;
- };
- };
-}
diff --git a/modules/by-name/co/coredump/module.nix b/modules/by-name/co/coredump/module.nix
deleted file mode 100644
index ce28ed9..0000000
--- a/modules/by-name/co/coredump/module.nix
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- 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;
- };
- };
-}