PoC working SP module system

+ simple-nixos-mailserver as an SP module
This commit is contained in:
Alexander Tomokhov
2023-11-10 07:10:06 +04:00
parent d9e2311f3c
commit 80ba7d0bda
25 changed files with 356 additions and 181 deletions

View File

@@ -1,16 +1,8 @@
{ config, lib, pkgs, ... }:
{ lib, ... }:
with lib;
let
cfg = config.services.userdata;
directionArg =
if cfg.direction == ""
then ""
else "--direction=${cfg.direction}";
in
{
options.services.userdata = {
options.selfprivacy.userdata = {
# General server options
hostname = mkOption {
description = "The hostname of the server.";
@@ -221,6 +213,7 @@ in
useBinds = mkOption {
type = types.nullOr types.bool;
default = false;
description = "Whether to bind-mount vmail and sieve folders";
};
};
}