diff options
author | makefu <github@syntax-fehler.de> | 2017-05-19 11:54:37 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2017-05-19 11:54:37 +0200 |
commit | 7383125f6b0f0d7965ea389234a4a4d9da8151f3 (patch) | |
tree | a9b1e1bd20f14bbe9ee3cbe85c4325dee1aa4640 /makefu | |
parent | a16ec260c6005536ba8d73e38be2aa55b314c80f (diff) |
m 2 time-machine: init
Diffstat (limited to 'makefu')
-rw-r--r-- | makefu/2configs/time-machine.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/makefu/2configs/time-machine.nix b/makefu/2configs/time-machine.nix new file mode 100644 index 000000000..90d44e540 --- /dev/null +++ b/makefu/2configs/time-machine.nix @@ -0,0 +1,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; + }; + }; + }; +} |