refactor: debloated imports and modules

This commit is contained in:
Nick 2024-11-03 17:48:32 -06:00
parent 489b64c9c7
commit 7351c5cc45
6 changed files with 237 additions and 342 deletions

View file

@ -1,33 +1,27 @@
{
imports = [
# Folders
./mastodon
# Files
./acme.nix
./caddy.nix
./jellyfin.nix
./logrotate.nix
./minecraft.nix
./ollama.nix
./peertube.nix
./postgresql.nix
./owncast.nix
./samba.nix
./vaultwarden.nix
./wiki.nix
# These are all broken.
# ./forgejo.nix
# Partial Nginx configs make it nearly impossible to use alongside Caddy. 👇
# ./castopod.nix
# The reverse proxy works, but something is cucked.
# Maybe the port, or some configuration thing. It's unclear.
# Might actually have to wait for the package to get uncucked. 👇
# ./nextcloud.nix
let
serviceFolders = [
"mastodon"
];
serviceFiles = [
"acme"
"caddy"
"jellyfin"
"logrotate"
"minecraft"
"ollama"
"peertube"
"postgresql"
"owncast"
"samba"
"vaultwarden"
"wiki"
# "forgejo"
# "castopod"
# "nextcloud"
];
in {
imports =
(map (folder: ./${folder}) serviceFolders)
++ (map (file: ./${file}.nix) serviceFiles);
}