default.nix 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # { config, pkgs, ... }:
  2. {
  3. imports = [
  4. ./tailscale.nix
  5. # ./immich.nix
  6. # ./snapraid.nix
  7. # ./mergerfs.nix
  8. # Add more services as you create them
  9. # ./jellyfin.nix
  10. # ./nextcloud.nix
  11. # ./traefik.nix
  12. ];
  13. # # Common service setup
  14. # systemd.tmpfiles.rules = [
  15. # # Service directories
  16. # "d /srv 0755 root root -"
  17. # "d /srv/immich 0755 root root -"
  18. # "d /srv/media 0755 root root -"
  19. # "d /srv/web 0755 root root -"
  20. # "d /srv/monitoring 0755 root root -"
  21. #
  22. # # Database directories
  23. # "d /databases 0755 root root -"
  24. # "d /databases/postgresql 0755 postgres postgres -"
  25. # "d /databases/redis 0755 redis redis -"
  26. #
  27. # # Cache directories
  28. # "d /cache 0755 root root -"
  29. # "d /cache/immich 0755 root root -"
  30. #
  31. # # Log directories
  32. # "d /logs 0755 root root -"
  33. # "d /logs/services 0755 root root -"
  34. #
  35. # # Storage array structure
  36. # "d /storage 0755 root root -"
  37. # "d /storage/media 0755 root root -"
  38. # "d /storage/backups 0755 root root -"
  39. # "d /storage/photos 0755 root root -"
  40. # ];
  41. #
  42. # # MergerFS for unified storage view
  43. # services.mergerfs.mounts = {
  44. # "/storage" = {
  45. # branches = [ "/mnt/disk1" "/mnt/disk2" "/mnt/disk3" ];
  46. # options = "defaults,allow_other,use_ino,cache.files=partial,dropcacheonclose=true,category.create=mfs";
  47. # };
  48. # };
  49. }