Fix issue with port

This commit is contained in:
Sierra 2024-04-18 21:57:37 -05:00
parent c9345b178b
commit fc201fa0ea

View file

@ -2,7 +2,7 @@ self: { config, lib, options, ... }:
with lib;
let
cfg = config.casuallyblue.services.webring;
instance = name: { port, vhost, ... }: let
instance = name: { port, vhost, user, ... }: let
user-name = if user == null then "webring-${name}" else user;
in {
users = {
@ -47,8 +47,7 @@ let
};
};
in {
options = {
casuallyblue.services.webring = mkOption {
options.casuallyblue.services.webring = mkOption {
default = { };
description = ''
Instances of the webring to run.
@ -73,7 +72,6 @@ in {
};
});
};
};
config = let
c = mapAttrsToList instance cfg;