aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorSoispha Peetz <soispha@b-peetz.de>2026-11-27 01:43:46 +0100
committerSoispha Peetz <soispha@b-peetz.de>2026-11-27 01:43:46 +0100
commit4354c024ac8ebe3e6914ef52c2a57ba2a3d6f43b (patch)
treeb53d68d974e1c005a696c4d705010b304e9d47d9 /modules
parentmodules/{atuin,atuin-sync}: Import the `turtle` module in both (diff)
downloadnixos-server-4354c024ac8ebe3e6914ef52c2a57ba2a3d6f43b.zip
modules/mandb: Init
Diffstat (limited to 'modules')
-rw-r--r--modules/by-name/ma/mandb/module.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/by-name/ma/mandb/module.nix b/modules/by-name/ma/mandb/module.nix
new file mode 100644
index 0000000..69f6546
--- /dev/null
+++ b/modules/by-name/ma/mandb/module.nix
@@ -0,0 +1,27 @@
+# nixos-config - My current NixOS configuration
+#
+# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+# This file is part of my nixos-config.
+#
+# You should have received a copy of the License along with this program.
+# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
+{
+ config,
+ lib,
+ ...
+}: let
+ cfg = config.vhack.services.mandb;
+in {
+ options.vhack.services.mandb = {
+ enable = lib.mkEnableOption "mandb";
+ };
+
+ config = lib.mkIf cfg.enable {
+ users = {
+ users.mandb.uid = config.vhack.constants.ids.uids.mandb;
+ groups.mandb.gid = config.vhack.constants.ids.gids.mandb;
+ };
+ };
+}