1
0
Fork 0
nixos-config/common/common.nix
2019-12-15 17:26:47 +01:00

25 lines
719 B
Nix

{ pkgs ? import <nixpkgs> }: {
syncthing = {
declarativeWith = hosts:
let
folderContent = { devices = hosts; };
rootFolder = "/media";
devices = {
apollo = { id = "?"; };
hera = {
id =
"TJHVUM6-RTB6V3D-JF4GIB2-TVDF2ST-5MTN6N2-ZDIWGF7-XZUCCFG-EQG5WA6";
};
};
in {
devices = pkgs.lib.getAttrs hosts devices;
folders = {
"${rootFolder}/science" = folderContent;
"${rootFolder}/documents" = folderContent;
"${rootFolder}/audio" = folderContent;
"${rootFolder}/video" = folderContent;
"${rootFolder}/images" = folderContent;
};
};
};
}