1
0

default.nix 1.4 KB

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