added syncthing
This commit is contained in:
		
							parent
							
								
									cce6a213aa
								
							
						
					
					
						commit
						fe43be7e3b
					
				
					 7 changed files with 69 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -10,6 +10,7 @@
 | 
			
		|||
    ./gitea.nix
 | 
			
		||||
    ./hardware-configuration.nix
 | 
			
		||||
    ./radicale.nix
 | 
			
		||||
    ./syncthing.nix
 | 
			
		||||
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										9
									
								
								hosts/Anton/docker.nix.save
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								hosts/Anton/docker.nix.save
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,9 @@
 | 
			
		|||
{ pkgs, ... }:
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
  virtualisation.docker = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    storageDriver = "btrfs";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -2,7 +2,7 @@
 | 
			
		|||
{
 | 
			
		||||
  networking.firewall = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    allowedTCPPorts = [ 22 80 443 3000 ];
 | 
			
		||||
    allowedTCPPorts = [ 22 80 443 3000 8384 ];
 | 
			
		||||
    allowedUDPPorts = [ 22 80 443 ];
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										54
									
								
								hosts/Anton/syncthing.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										54
									
								
								hosts/Anton/syncthing.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,54 @@
 | 
			
		|||
{ pkgs, ... }:
 | 
			
		||||
{
 | 
			
		||||
  services.syncthing = {
 | 
			
		||||
    enable =  true;
 | 
			
		||||
    dataDir = "/mnt/data/services/syncthing/data";
 | 
			
		||||
    configDir = "/mnt/data/services/syncthing/config";
 | 
			
		||||
    overrideDevices = true;
 | 
			
		||||
    overrideFolders = true;
 | 
			
		||||
    openDefaultPorts = true;
 | 
			
		||||
    guiAddress = "0.0.0.0:8384";
 | 
			
		||||
    settings = {
 | 
			
		||||
      gui = {
 | 
			
		||||
        user = "willifan";
 | 
			
		||||
        password = "temppassword";
 | 
			
		||||
      };
 | 
			
		||||
      devices = {
 | 
			
		||||
        Lenni = { id = "XS6NR2Q-DHVB5G4-P43CHWR-TVBIY5A-FCIS7CU-S5UVNZA-5YPJYST-2EO2GAG"; };
 | 
			
		||||
        Puenktchen = { id = "VP3YVIM-JNSZTXV-7AS7FA2-3W5QKH6-XOWXX7N-STUR4JR-PR6SPCV-HJZMAAN"; };
 | 
			
		||||
      };
 | 
			
		||||
      folders = {
 | 
			
		||||
        "Documents" = {
 | 
			
		||||
          id = "jtl6g-qjmwo";
 | 
			
		||||
          path = "/mnt/data/services/syncthing/data/Documents";
 | 
			
		||||
          devices = [ "Lenni" "Puenktchen" ];
 | 
			
		||||
        };
 | 
			
		||||
        "Enpass" = {
 | 
			
		||||
          id = "ciksm-xsw4m";
 | 
			
		||||
          path = "/mnt/data/services/syncthing/data/Enpass";
 | 
			
		||||
          devices = [ "Lenni" "Puenktchen" ];
 | 
			
		||||
        };
 | 
			
		||||
        "Pictures" = {
 | 
			
		||||
          id = "po4qj-q9t0t";
 | 
			
		||||
          path = "/mnt/data/services/syncthing/data/Pictures";
 | 
			
		||||
          devices = [ "Lenni" "Puenktchen" ];
 | 
			
		||||
        };
 | 
			
		||||
        "Videos" = {
 | 
			
		||||
          id = "4wqf5-xasng";
 | 
			
		||||
          path = "/mnt/data/services/syncthing/data/Videos";
 | 
			
		||||
          devices = [ "Lenni" "Puenktchen" ];
 | 
			
		||||
        };
 | 
			
		||||
        "Notes" = {
 | 
			
		||||
          id = "oc61n-iewgj";
 | 
			
		||||
          path = "/mnt/data/services/syncthing/data/Notes";
 | 
			
		||||
          devices = [ "Lenni" "Puenktchen" ];
 | 
			
		||||
        };
 | 
			
		||||
        "Music" = {
 | 
			
		||||
          id = "xxh8a-3y2tq";
 | 
			
		||||
          path = "/mnt/data/services/syncthing/data/Music";
 | 
			
		||||
          devices = [ "Lenni" "Puenktchen" ];
 | 
			
		||||
        };
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -5,6 +5,7 @@
 | 
			
		|||
    ./nix-ld.nix
 | 
			
		||||
    ./boot.nix
 | 
			
		||||
    ./printers.nix
 | 
			
		||||
    ./syncthing.nix
 | 
			
		||||
  ];
 | 
			
		||||
  
 | 
			
		||||
  hardware.bluetooth.enable = true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,7 +13,7 @@
 | 
			
		|||
        password = "temppassword";
 | 
			
		||||
      };
 | 
			
		||||
      devices = {
 | 
			
		||||
        Anton = { id = "SGKTC3I-6IQZ5Z5-VAB76N6-L7DJ3TH-BMSZGKZ-MZPZHLO-KOVMZ2W-V5GQTA6"; };
 | 
			
		||||
        Anton = { id = "WCDBADD-UPKCACI-X2YJOIO-5QC44PL-DBCR6TS-ADVQV33-HSMF32O-FOKMKAU"; };
 | 
			
		||||
      };
 | 
			
		||||
      folders = {
 | 
			
		||||
        "Documents" = {
 | 
			
		||||
| 
						 | 
				
			
			@ -6,7 +6,6 @@
 | 
			
		|||
    ./hyfetch.nix
 | 
			
		||||
    ./locales.nix
 | 
			
		||||
    #./ssh.nix
 | 
			
		||||
    ./syncthing.nix
 | 
			
		||||
    ./user.nix
 | 
			
		||||
    #./zsh.nix
 | 
			
		||||
  ];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue