summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/time-machine.nix
blob: 90d44e540bd21ee0fefd5a3a48212d3bccf15c83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
let
  time-machine-path = "/media/crypt2/backup/time-machine/misa";
in {
	networking.firewall.allowedTCPPorts = [
    548 # netatalk
  ];

  services = {
    netatalk = {
      enable = true;

      volumes = {
        "misa-time-machine" = {
          "time machine" = "yes";
          path = time-machine-path;
          "valid users" = "misa";
        };
      };
    };

    avahi = {
      enable = true;
      nssmdns = true;

      publish = {
        enable = true;
        userServices = true;
      };
    };
  };
}