Standardize formatting of imports, options, config

This commit is contained in:
Vice 2025-03-05 06:28:38 -05:00
parent 297b57bbaa
commit fc47b1a9ab
4 changed files with 7 additions and 7 deletions

View file

@ -1,10 +1,10 @@
{ lib, ... }: { lib, ... }:
{ {
options.system.mailserver.enable = lib.mkEnableOption "Enable Simple NixOS Mailserver";
imports = [ imports = [
./go-autoconfig ./go-autoconfig
./roundcube ./roundcube
./simplenix ./simplenix
]; ];
options.system.mailserver.enable = lib.mkEnableOption "Enable Simple NixOS Mailserver";
} }

View file

@ -1,8 +1,8 @@
{ config, lib, minecraft, ... }: { config, lib, minecraft, ... }:
{ {
imports = [ imports = [
minecraft.nixosModules.minecraft-servers
./servers/default.nix ./servers/default.nix
minecraft.nixosModules.minecraft-servers
]; ];
config = lib.mkIf config.system.server.enable { config = lib.mkIf config.system.server.enable {

View file

@ -1,10 +1,10 @@
{ lib, ... }: { lib, ... }:
{ {
options.system.socialserver.enable = lib.mkEnableOption "Enable social media like services";
imports = [ imports = [
./mastodon ./mastodon
./matrix ./matrix
./owncast ./owncast
]; ];
options.system.socialserver.enable = lib.mkEnableOption "Enable social media like services";
} }

View file

@ -1,9 +1,9 @@
{ lib, ... }: { lib, ... }:
{ {
options.system.webserver.enable = lib.mkEnableOption "Enable nginx related services";
imports = [ imports = [
./acme ./acme
./nginx ./nginx
]; ];
options.system.webserver.enable = lib.mkEnableOption "Enable nginx related services";
} }