voyager: remove flame. Move DNS to base.nix
This commit is contained in:
		
							parent
							
								
									efbaf1ffed
								
							
						
					
					
						commit
						5fb2307cd9
					
				
							
								
								
									
										1
									
								
								base.nix
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								base.nix
									
									
									
									
									
								
							@ -7,6 +7,7 @@
 | 
			
		||||
 | 
			
		||||
  networking = {
 | 
			
		||||
    domain = "home.feal.no";
 | 
			
		||||
    nameservers = [ "192.168.10.3" "192.168.11.100" "1.1.1.1" ];
 | 
			
		||||
    useDHCP = lib.mkDefault false;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -16,7 +16,6 @@
 | 
			
		||||
  networking = {
 | 
			
		||||
    hostName = "chapel";
 | 
			
		||||
    defaultGateway = "192.168.10.1";
 | 
			
		||||
    nameservers = [ "192.168.10.1" ];
 | 
			
		||||
    interfaces.eth0.ipv4 = {
 | 
			
		||||
      addresses = [
 | 
			
		||||
        { address = "192.168.10.100"; prefixLength = 24; }
 | 
			
		||||
 | 
			
		||||
@ -12,7 +12,6 @@
 | 
			
		||||
  networking = {
 | 
			
		||||
    hostName = "edison";
 | 
			
		||||
    defaultGateway = "192.168.10.1";
 | 
			
		||||
    nameservers = [ "192.168.11.100" "1.1.1.1" ];
 | 
			
		||||
 | 
			
		||||
    # Networking / Wi-Fi is configured with NM for now. TODO
 | 
			
		||||
    networkmanager.enable = true;
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,6 @@
 | 
			
		||||
  networking = {
 | 
			
		||||
    hostName = "sarek";
 | 
			
		||||
    defaultGateway = "192.168.10.1";
 | 
			
		||||
    nameservers = [ "192.168.10.3" "192.168.11.100" "1.1.1.1" ];
 | 
			
		||||
    interfaces."eth0".ipv4 = {
 | 
			
		||||
      addresses = [
 | 
			
		||||
        { address = "192.168.10.181"; prefixLength = 24; }
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,6 @@
 | 
			
		||||
      ./services/jellyfin.nix
 | 
			
		||||
      ./services/transmission.nix
 | 
			
		||||
      ./services/metrics
 | 
			
		||||
      ./services/flame.nix
 | 
			
		||||
      ./services/gitea.nix
 | 
			
		||||
      ./services/hedgedoc.nix
 | 
			
		||||
      ./services/vaultwarden.nix
 | 
			
		||||
@ -36,7 +35,6 @@
 | 
			
		||||
  networking = {
 | 
			
		||||
    hostName = "voyager";
 | 
			
		||||
    defaultGateway = "192.168.10.1";
 | 
			
		||||
    nameservers = [ "192.168.11.100" "1.1.1.1" ];
 | 
			
		||||
    interfaces.eno1.ipv4 = {
 | 
			
		||||
      addresses = [
 | 
			
		||||
      { address = "192.168.10.165"; prefixLength = 24; }
 | 
			
		||||
 | 
			
		||||
@ -1,22 +0,0 @@
 | 
			
		||||
{ config, pkgs, lib, ... }:
 | 
			
		||||
let
 | 
			
		||||
  host = "127.0.1.2";
 | 
			
		||||
  port = "5005";
 | 
			
		||||
in {
 | 
			
		||||
   # Flame - Homelab dashboard/linktree
 | 
			
		||||
   virtualisation.oci-containers.containers = {
 | 
			
		||||
     flame = {
 | 
			
		||||
       image = "pawelmalak/flame";
 | 
			
		||||
       ports = [ "${host}:${port}:5005" ];
 | 
			
		||||
       volumes = [
 | 
			
		||||
         "/var/lib/flame/data:/app/data/"
 | 
			
		||||
       ];
 | 
			
		||||
     };
 | 
			
		||||
   };
 | 
			
		||||
   services.nginx.virtualHosts."flame.home.feal.no" = {
 | 
			
		||||
     locations."/" = {
 | 
			
		||||
       proxyPass = "http://${host}:${port}";
 | 
			
		||||
     };
 | 
			
		||||
   };
 | 
			
		||||
 }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user