Fix module defaults #21

Manually merged
tlater merged 2 commits from tlater/fix-module-defaults into master 2022-10-14 12:38:00 +01:00
Showing only changes of commit 5d037f9122 - Show all commits

View file

@ -16,9 +16,7 @@ in {
options = { options = {
services.tlaternet-webserver = { services.tlaternet-webserver = {
enable = mkEnableOption "tlaternet web server"; enable = mkEnableOption "tlaternet web server";
listen = mkOption { listen = {
type = submodule {
options = {
addr = mkOption { addr = mkOption {
type = str; type = str;
description = "IP address."; description = "IP address.";
@ -33,8 +31,6 @@ in {
}; };
}; };
}; };
};
};
config = mkIf cfg.enable { config = mkIf cfg.enable {
systemd.services.tlaternet-webserver = { systemd.services.tlaternet-webserver = {