tracking sealight-synapse (lituus) from here now
This commit is contained in:
		
							parent
							
								
									da451faf78
								
							
						
					
					
						commit
						22b190b610
					
				|  | @ -148,7 +148,8 @@ | ||||||
|             }; |             }; | ||||||
|             suites = with profiles; rec { |             suites = with profiles; rec { | ||||||
|               base = [ core users.root users.anish ]; |               base = [ core users.root users.anish ]; | ||||||
|               sealight = [ base server metrics gitea sealight-website backup rss-bridge mount-mossnet ]; # matrix  |               sealight = [ base server metrics gitea rss-bridge mount-mossnet ]; # matrix  | ||||||
|  |               lituus = [ base server metrics sealight-website matrix ]; | ||||||
|               mossnet = [ base server taskd shaarli dns monitoring nfs gonic headphones radicale seafile syncthing dhyan calibre wallabag finance ]; # hpi sync.music  |               mossnet = [ base server taskd shaarli dns monitoring nfs gonic headphones radicale seafile syncthing dhyan calibre wallabag finance ]; # hpi sync.music  | ||||||
|               cube = [ base site server ]; |               cube = [ base site server ]; | ||||||
|               graphical = [ base bluetooth music sync.kitaab sync.website sync.cal wifi desktop mimetypes ]; |               graphical = [ base bluetooth music sync.kitaab sync.website sync.cal wifi desktop mimetypes ]; | ||||||
|  |  | ||||||
							
								
								
									
										26
									
								
								hardware-configuration.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								hardware-configuration.nix
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,26 @@ | ||||||
|  | # Do not modify this file!  It was generated by ‘nixos-generate-config’ | ||||||
|  | # and may be overwritten by future invocations.  Please make changes | ||||||
|  | # to /etc/nixos/configuration.nix instead. | ||||||
|  | { config, lib, pkgs, ... }: | ||||||
|  | 
 | ||||||
|  | { | ||||||
|  |   imports = | ||||||
|  |     [ | ||||||
|  |       <nixpkgs/nixos/modules/profiles/qemu-guest.nix> | ||||||
|  |     ]; | ||||||
|  | 
 | ||||||
|  |   boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ]; | ||||||
|  |   boot.initrd.kernelModules = [ ]; | ||||||
|  |   boot.kernelModules = [ ]; | ||||||
|  |   boot.extraModulePackages = [ ]; | ||||||
|  | 
 | ||||||
|  |   fileSystems."/" = | ||||||
|  |     { | ||||||
|  |       device = "/dev/disk/by-uuid/3b8b2c4b-835e-4822-8ac8-0effdc8270d6"; | ||||||
|  |       fsType = "btrfs"; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  |   swapDevices = [ ]; | ||||||
|  | 
 | ||||||
|  |   nix.maxJobs = lib.mkDefault 1; | ||||||
|  | } | ||||||
							
								
								
									
										31
									
								
								hosts/lituus/configuration.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								hosts/lituus/configuration.nix
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,31 @@ | ||||||
|  | { config, pkgs, ... }: | ||||||
|  | { | ||||||
|  |   imports = | ||||||
|  |     [ | ||||||
|  |       # Include the results of the hardware scan. | ||||||
|  |       ./hardware-configuration.nix | ||||||
|  |     ]; | ||||||
|  | 
 | ||||||
|  |   # Use the GRUB 2 boot loader. | ||||||
|  |   boot.loader.grub.enable = true; | ||||||
|  |   boot.loader.grub.version = 2; | ||||||
|  |   boot.loader.grub.device = "/dev/vda"; # or "nodev" for efi only | ||||||
|  | 
 | ||||||
|  |   networking.hostName = "lituus"; # Define your hostname. | ||||||
|  | 
 | ||||||
|  |   networking.useDHCP = false; | ||||||
|  |   networking.interfaces.ens3.useDHCP = true; | ||||||
|  | 
 | ||||||
|  |   # Configure network proxy if necessary | ||||||
|  |   # networking.proxy.default = "http://user:password@proxy:port/"; | ||||||
|  |   # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; | ||||||
|  | 
 | ||||||
|  |   sound.enable = false; | ||||||
|  | 
 | ||||||
|  |   # Define a user account. Don't forget to set a password with ‘passwd’. | ||||||
|  |   # This value determines the NixOS release with which your system is to be | ||||||
|  |   # compatible, in order to avoid breaking some software such as database | ||||||
|  |   # servers. You should change this only after NixOS release notes say you | ||||||
|  |   # should. | ||||||
|  |   system.stateVersion = "19.09"; # Did you read the comment? | ||||||
|  | } | ||||||
							
								
								
									
										11
									
								
								hosts/lituus/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								hosts/lituus/default.nix
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | ||||||
|  | { self, profiles, suites, ... }: | ||||||
|  | { | ||||||
|  |   imports = [ | ||||||
|  |     ./configuration.nix | ||||||
|  |   ] ++ suites.lituus; | ||||||
|  | 
 | ||||||
|  |   home-manager.users.anish = { self, suites, ... }: { | ||||||
|  |     imports = [ ] ++ suites.hmBase; | ||||||
|  |   }; | ||||||
|  | 
 | ||||||
|  | } | ||||||
							
								
								
									
										26
									
								
								hosts/lituus/hardware-configuration.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								hosts/lituus/hardware-configuration.nix
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,26 @@ | ||||||
|  | # Do not modify this file!  It was generated by ‘nixos-generate-config’ | ||||||
|  | # and may be overwritten by future invocations.  Please make changes | ||||||
|  | # to /etc/nixos/configuration.nix instead. | ||||||
|  | { config, lib, pkgs, ... }: | ||||||
|  | 
 | ||||||
|  | { | ||||||
|  |   imports = | ||||||
|  |     [ | ||||||
|  |       <nixpkgs/nixos/modules/profiles/qemu-guest.nix> | ||||||
|  |     ]; | ||||||
|  | 
 | ||||||
|  |   boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ]; | ||||||
|  |   boot.initrd.kernelModules = [ ]; | ||||||
|  |   boot.kernelModules = [ ]; | ||||||
|  |   boot.extraModulePackages = [ ]; | ||||||
|  | 
 | ||||||
|  |   fileSystems."/" = | ||||||
|  |     { | ||||||
|  |       device = "/dev/disk/by-uuid/3b8b2c4b-835e-4822-8ac8-0effdc8270d6"; | ||||||
|  |       fsType = "btrfs"; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  |   swapDevices = [ ]; | ||||||
|  | 
 | ||||||
|  |   nix.maxJobs = lib.mkDefault 1; | ||||||
|  | } | ||||||
|  | @ -1,5 +1,6 @@ | ||||||
|  | # TODO too lazy to figure out how the official module works so i use this one lol | ||||||
| { config, lib, pkgs, ... }: with lib; let | { config, lib, pkgs, ... }: with lib; let | ||||||
|   cfg = config.services.heisenbridge; |   cfg = config.services.sealight.heisenbridge; | ||||||
| 
 | 
 | ||||||
|   heisenbridgeAppserviceConfig = { |   heisenbridgeAppserviceConfig = { | ||||||
|     id = "heisenbridge"; |     id = "heisenbridge"; | ||||||
|  | @ -20,7 +21,7 @@ | ||||||
| in | in | ||||||
| { | { | ||||||
|   options = { |   options = { | ||||||
|     services.heisenbridge = { |     services.sealight.heisenbridge = { | ||||||
|       enable = mkEnableOption "heisenbridge, a bouncer-style Matrix IRC bridge."; |       enable = mkEnableOption "heisenbridge, a bouncer-style Matrix IRC bridge."; | ||||||
|       identd.enable = mkEnableOption "identd for heisenbridge" // { |       identd.enable = mkEnableOption "identd for heisenbridge" // { | ||||||
|         default = true; |         default = true; | ||||||
|  | @ -87,7 +88,7 @@ in | ||||||
|     # Open ports for identd. |     # Open ports for identd. | ||||||
|     networking.firewall.allowedTCPPorts = mkIf cfg.identd.enable [ 113 ]; |     networking.firewall.allowedTCPPorts = mkIf cfg.identd.enable [ 113 ]; | ||||||
| 
 | 
 | ||||||
|     systemd.services.heisenbridge = { |     systemd.services.heisenbridge-sealight = { | ||||||
|       description = "Heisenbridge Matrix IRC bridge"; |       description = "Heisenbridge Matrix IRC bridge"; | ||||||
|       after = [ "matrix-synapse.service" ]; |       after = [ "matrix-synapse.service" ]; | ||||||
|       wantedBy = [ "multi-user.target" ]; |       wantedBy = [ "multi-user.target" ]; | ||||||
|  | @ -60,7 +60,7 @@ | ||||||
|   services.coturn = { |   services.coturn = { | ||||||
|     enable = true; |     enable = true; | ||||||
|     use-auth-secret = true; |     use-auth-secret = true; | ||||||
|     static-auth-secret = "jXW1ohIq6wM3NB00xeME3uBihY85xjpkhGoyzBIdwhOpj7gjyxXZu1fwp1lUiYwJ"; |     static-auth-secret = "jXW1ohIq6wM3NB00xeME3uBihY85xjpkhGoyzBIdwhOpj7gjyxXZu1fwp1lUiYwJ"; # TODO agenix | ||||||
|     realm = "turn.sealight.xyz"; |     realm = "turn.sealight.xyz"; | ||||||
|     min-port = 49111; |     min-port = 49111; | ||||||
|     max-port = 51111; |     max-port = 51111; | ||||||
|  | @ -254,13 +254,13 @@ | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   # services.heisenbridge = { |   services.sealight.heisenbridge = { | ||||||
|   #   enable = true; |     enable = true; | ||||||
|   #   homeserver = "https://sealight.xyz"; |     homeserver = "https://sealight.xyz"; | ||||||
|   #   listenPort = 14456; |     listenPort = 14456; | ||||||
|   #   appServiceToken = "wyujLh8kjpmk2bfKeEE3sZ2gWOEUBKK5"; |     appServiceToken = "wyujLh8kjpmk2bfKeEE3sZ2gWOEUBKK5"; | ||||||
|   #   homeserverToken = "yEHs7lthD2ZHUibJOAv1APaFhEjxN5PT"; |     homeserverToken = "yEHs7lthD2ZHUibJOAv1APaFhEjxN5PT"; | ||||||
|   # }; |   }; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|   # environment.systemPackages = with pkgs; [ matrix-appservice-slack ]; |   # environment.systemPackages = with pkgs; [ matrix-appservice-slack ]; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue