added starter adguard home config for rockpro.
This commit is contained in:
		
							parent
							
								
									98a92683bd
								
							
						
					
					
						commit
						9a0f9b005b
					
				
					 5 changed files with 25 additions and 2 deletions
				
			
		| 
						 | 
					@ -91,7 +91,7 @@
 | 
				
			||||||
      archlaptop-vm = import ./hosts/archlaptop-vm {inherit inputs configLib;};
 | 
					      archlaptop-vm = import ./hosts/archlaptop-vm {inherit inputs configLib;};
 | 
				
			||||||
      workstation-vm = import ./hosts/workstation-vm {inherit inputs configLib;};
 | 
					      workstation-vm = import ./hosts/workstation-vm {inherit inputs configLib;};
 | 
				
			||||||
      gv-wsl = import ./hosts/wsl-workstation.nix {inherit inputs configLib;};
 | 
					      gv-wsl = import ./hosts/wsl-workstation.nix {inherit inputs configLib;};
 | 
				
			||||||
      rockpro = import ./hosts/rockpro64 {inherit inputs configLib;};
 | 
					      rockhole = import ./hosts/rockhole64 {inherit inputs configLib;};
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Standalone home-manager configuration entrypoint
 | 
					    # Standalone home-manager configuration entrypoint
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										14
									
								
								hosts/rockhole64/adguard.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								hosts/rockhole64/adguard.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,14 @@
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  config,
 | 
				
			||||||
 | 
					  pkgs,
 | 
				
			||||||
 | 
					  inputs,
 | 
				
			||||||
 | 
					  configLib,
 | 
				
			||||||
 | 
					  lib,
 | 
				
			||||||
 | 
					  ...
 | 
				
			||||||
 | 
					}: {
 | 
				
			||||||
 | 
					  services.adguardhome={
 | 
				
			||||||
 | 
					    enable=true;
 | 
				
			||||||
 | 
					    mutableSettings=true;
 | 
				
			||||||
 | 
					    allowDHCP=true;
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -11,6 +11,7 @@ inputs.nixpkgs.lib.nixosSystem {
 | 
				
			||||||
    inputs.disko.nixosModules.disko
 | 
					    inputs.disko.nixosModules.disko
 | 
				
			||||||
    ./disk-config.nix
 | 
					    ./disk-config.nix
 | 
				
			||||||
    ./hardware-config.nix
 | 
					    ./hardware-config.nix
 | 
				
			||||||
 | 
					    ./adguard.nix
 | 
				
			||||||
    ../../configs/nixos/common.nix
 | 
					    ../../configs/nixos/common.nix
 | 
				
			||||||
    ../../configs/nixos/sshd.nix
 | 
					    ../../configs/nixos/sshd.nix
 | 
				
			||||||
    ../../configs/nixos/secrets.nix
 | 
					    ../../configs/nixos/secrets.nix
 | 
				
			||||||
| 
						 | 
					@ -38,7 +39,15 @@ inputs.nixpkgs.lib.nixosSystem {
 | 
				
			||||||
        user = "gabe";
 | 
					        user = "gabe";
 | 
				
			||||||
        fullName = "Gabe Venberg";
 | 
					        fullName = "Gabe Venberg";
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
      networking.hostName = "rockpro"; # Define your hostname.
 | 
					      networking.hostName = "rockhole"; # Define your hostname.
 | 
				
			||||||
 | 
					      systemd.network = {
 | 
				
			||||||
 | 
					        enable = true;
 | 
				
			||||||
 | 
					        networks."TODO" = {
 | 
				
			||||||
 | 
					          address = ["10.10.0.2/16"];
 | 
				
			||||||
 | 
					          gateway = ["10.10.0.1"];
 | 
				
			||||||
 | 
					          dns = ["10.10.0.2"];
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      # home-manager.sharedModules = [
 | 
					      # home-manager.sharedModules = [
 | 
				
			||||||
      #   inputs.sops-nix.homeManagerModules.sops
 | 
					      #   inputs.sops-nix.homeManagerModules.sops
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue