added syncthing.nix to hosts/hades/
This commit is contained in:
parent
8648014af1
commit
86da769075
2 changed files with 43 additions and 1 deletions
|
|
@ -7,7 +7,7 @@
|
|||
## Selected host modules for import
|
||||
./hardware.nix # hardware configuration
|
||||
./network.nix # network configuration
|
||||
#./extra.nix # configuration.nix substitute
|
||||
./syncthing.nix # syncthing configuration
|
||||
./zfs.nix # zfs configuration
|
||||
|
||||
## Selected core modules for import
|
||||
|
|
|
|||
|
|
@ -0,0 +1,42 @@
|
|||
{ pkgs, primaryUser, ... }:
|
||||
|
||||
{
|
||||
|
||||
environment = {
|
||||
systemPackages = with pkgs; [ syncthing syncthing-cli syncthing-tray ];
|
||||
};
|
||||
|
||||
services = {
|
||||
|
||||
syncthing = {
|
||||
enable = true;
|
||||
#configDir = path;
|
||||
dataDir = "/home/${primaryUser}/sync";
|
||||
#overrideDevices = true;
|
||||
#overrideFolder = true;
|
||||
|
||||
## these 3 devices are pretty much my entire ecosystem for now
|
||||
#settings.devices = {
|
||||
#hades.id = "DEVICE_ID";
|
||||
#proserpina.id = "DEVICE_ID";
|
||||
#hecate.id = "DEVICE_ID";
|
||||
};
|
||||
|
||||
## plan to have this dir automatically committed and pushed to a git repo daily
|
||||
#settings.folders = {
|
||||
#"FOLDER_ID" = {
|
||||
#path = "/home/${primaryUser}/Sync/Notes";
|
||||
#devices = [ "hecate" "hades" "persephone" ];
|
||||
#};
|
||||
|
||||
#"FOLDER_ID" = {
|
||||
#path = "/home/${primaryUser}/Sync/Keyring";
|
||||
#devices = [ "hecate" "hades" "persephone" ];
|
||||
#};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue