1
0

default.nix 1.3 KB

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