added syncthing
This commit is contained in:
		
							parent
							
								
									cce6a213aa
								
							
						
					
					
						commit
						fe43be7e3b
					
				
					 7 changed files with 69 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -6,10 +6,9 @@
 | 
			
		|||
    ./hyfetch.nix
 | 
			
		||||
    ./locales.nix
 | 
			
		||||
    #./ssh.nix
 | 
			
		||||
    ./syncthing.nix
 | 
			
		||||
    ./user.nix
 | 
			
		||||
    #./zsh.nix
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  home-manager.users.willifan.home.stateVersion = "23.11";
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,52 +0,0 @@
 | 
			
		|||
{ pkgs, ... }:
 | 
			
		||||
{
 | 
			
		||||
  services.syncthing = {
 | 
			
		||||
    enable =  true;
 | 
			
		||||
    user = "willifan";
 | 
			
		||||
    dataDir = "/mnt/data";
 | 
			
		||||
    configDir = "/mnt/data/.config/syncthing";
 | 
			
		||||
    overrideDevices = true;
 | 
			
		||||
    overrideFolders = true;
 | 
			
		||||
    settings = {
 | 
			
		||||
      gui = {
 | 
			
		||||
        user = "willifan";
 | 
			
		||||
        password = "temppassword";
 | 
			
		||||
      };
 | 
			
		||||
      devices = {
 | 
			
		||||
        Anton = { id = "SGKTC3I-6IQZ5Z5-VAB76N6-L7DJ3TH-BMSZGKZ-MZPZHLO-KOVMZ2W-V5GQTA6"; };
 | 
			
		||||
      };
 | 
			
		||||
      folders = {
 | 
			
		||||
        "Documents" = {
 | 
			
		||||
          id = "jtl6g-qjmwo";
 | 
			
		||||
          path = "/mnt/data/Documents";
 | 
			
		||||
          devices = [ "Anton" ];
 | 
			
		||||
        };
 | 
			
		||||
        "Enpass" = {
 | 
			
		||||
          id = "ciksm-xsw4m";
 | 
			
		||||
          path = "/mnt/data/Enpass";
 | 
			
		||||
          devices = [ "Anton" ];
 | 
			
		||||
        };
 | 
			
		||||
        "Pictures" = {
 | 
			
		||||
          id = "po4qj-q9t0t";
 | 
			
		||||
          path = "/mnt/data/Pictures";
 | 
			
		||||
          devices = [ "Anton" ];
 | 
			
		||||
        };
 | 
			
		||||
        "Videos" = {
 | 
			
		||||
          id = "4wqf5-xasng";
 | 
			
		||||
          path = "/mnt/data/Videos";
 | 
			
		||||
          devices = [ "Anton" ];
 | 
			
		||||
        };
 | 
			
		||||
        "Notes" = {
 | 
			
		||||
          id = "oc61n-iewgj";
 | 
			
		||||
          path = "/mnt/data/Notes";
 | 
			
		||||
          devices = [ "Anton" ];
 | 
			
		||||
        };
 | 
			
		||||
        "Music" = {
 | 
			
		||||
          id = "xxh8a-3y2tq";
 | 
			
		||||
          path = "/mnt/data/Music";
 | 
			
		||||
          devices = [ "Anton" ];
 | 
			
		||||
        };
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue