added gitea
This commit is contained in:
		
							parent
							
								
									6a3f97cebb
								
							
						
					
					
						commit
						7c9883774f
					
				
					 5 changed files with 35 additions and 16 deletions
				
			
		
							
								
								
									
										20
									
								
								flake.nix
									
										
									
									
									
								
							
							
						
						
									
										20
									
								
								flake.nix
									
										
									
									
									
								
							| 
						 | 
					@ -30,13 +30,10 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  outputs = { self, nixpkgs, nixpkgs-unstable, ... }@attrs: 
 | 
					  outputs = { self, nixpkgs, nixpkgs-unstable, ... }@attrs: 
 | 
				
			||||||
  let
 | 
					  let
 | 
				
			||||||
    supportedSystems = [ "x86_64-linux" ];
 | 
					      system = "x86_64-linux";
 | 
				
			||||||
    forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
 | 
					      lib = nixpkgs.lib;
 | 
				
			||||||
    forAllSystemsUnstable = nixpkgs-unstable.lib.genAttrs supportedSystems;
 | 
					      pkgs = nixpkgs.legacyPackages.${system};
 | 
				
			||||||
 | 
					      pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};
 | 
				
			||||||
    pkgs = forAllSystems (system: import nixpkgs { inherit system; });
 | 
					 | 
				
			||||||
    pkgs-unstable = forAllSystemsUnstable (system: import nixpkgs-unstable { inherit system; });
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  in
 | 
					  in
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    nixosConfigurations = {
 | 
					    nixosConfigurations = {
 | 
				
			||||||
| 
						 | 
					@ -44,11 +41,12 @@
 | 
				
			||||||
      Lenni = let
 | 
					      Lenni = let
 | 
				
			||||||
        system = "x86_64-linux";
 | 
					        system = "x86_64-linux";
 | 
				
			||||||
      in
 | 
					      in
 | 
				
			||||||
      nixpkgs.lib.nixosSystem {
 | 
					      lib.nixosSystem {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        specialArgs = {
 | 
					        specialArgs = {
 | 
				
			||||||
          hostname = "Lenni";
 | 
					          hostname = "Lenni";
 | 
				
			||||||
          type = "desktop";
 | 
					          type = "desktop";
 | 
				
			||||||
 | 
					          inherit pkgs-unstable;
 | 
				
			||||||
          inherit system;
 | 
					          inherit system;
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,11 +67,12 @@
 | 
				
			||||||
      Puenktchen = let
 | 
					      Puenktchen = let
 | 
				
			||||||
        system = "x86_64-linux";
 | 
					        system = "x86_64-linux";
 | 
				
			||||||
      in
 | 
					      in
 | 
				
			||||||
      nixpkgs.lib.nixosSystem {
 | 
					      lib.nixosSystem {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        specialArgs = {
 | 
					        specialArgs = {
 | 
				
			||||||
          hostname = "Puenktchen";
 | 
					          hostname = "Puenktchen";
 | 
				
			||||||
          type = "desktop";
 | 
					          type = "desktop";
 | 
				
			||||||
 | 
					          inherit pkgs-unstable;
 | 
				
			||||||
          inherit system;
 | 
					          inherit system;
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -97,11 +96,12 @@
 | 
				
			||||||
      Anton = let
 | 
					      Anton = let
 | 
				
			||||||
        system = "x86_64-linux";
 | 
					        system = "x86_64-linux";
 | 
				
			||||||
      in
 | 
					      in
 | 
				
			||||||
      nixpkgs.lib.nixosSystem {
 | 
					      lib.nixosSystem {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        specialArgs = {
 | 
					        specialArgs = {
 | 
				
			||||||
          hostname = "Anton";
 | 
					          hostname = "Anton";
 | 
				
			||||||
          type = "server";
 | 
					          type = "server";
 | 
				
			||||||
 | 
					          inherit pkgs-unstable;
 | 
				
			||||||
          inherit system;
 | 
					          inherit system;
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -5,6 +5,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ./disko.nix
 | 
					    ./disko.nix
 | 
				
			||||||
    ./data.nix
 | 
					    ./data.nix
 | 
				
			||||||
 | 
					    ./gitea.nix
 | 
				
			||||||
    ./hardware-configuration.nix
 | 
					    ./hardware-configuration.nix
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										17
									
								
								hosts/Anton/gitea.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								hosts/Anton/gitea.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,17 @@
 | 
				
			||||||
 | 
					{ pkgs, pkgs-unstable, ... }:
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					  services.gitea = {
 | 
				
			||||||
 | 
					    enable = true;
 | 
				
			||||||
 | 
					    package = pkgs-unstable.gitea;
 | 
				
			||||||
 | 
					    stateDir = "/mnt/data/services/gitea";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    settings = {
 | 
				
			||||||
 | 
					      server = {
 | 
				
			||||||
 | 
					        DOMAIN = "git.huwe.mooo.com";
 | 
				
			||||||
 | 
					        HTTP_PORT = 3000;
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -5,5 +5,10 @@
 | 
				
			||||||
    ./garbage-collect.nix
 | 
					    ./garbage-collect.nix
 | 
				
			||||||
    ./optimise.nix
 | 
					    ./optimise.nix
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  networking.networkmanager.enable = true;
 | 
				
			||||||
 | 
					  console.keyMap = "de";
 | 
				
			||||||
 | 
					  nixpkgs.config.allowUnfree = true;
 | 
				
			||||||
 | 
					  nix.settings.experimental-features = [ "nix-command" "flakes" ];
 | 
				
			||||||
  system.stateVersion = "23.11";
 | 
					  system.stateVersion = "23.11";
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,8 +10,4 @@
 | 
				
			||||||
  hardware.bluetooth.enable = true;
 | 
					  hardware.bluetooth.enable = true;
 | 
				
			||||||
  services.hardware.bolt.enable = true;
 | 
					  services.hardware.bolt.enable = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  networking.networkmanager.enable = true;
 | 
					}
 | 
				
			||||||
  console.keyMap = "de";
 | 
					 | 
				
			||||||
  nixpkgs.config.allowUnfree = true;
 | 
					 | 
				
			||||||
  nix.settings.experimental-features = [ "nix-command" "flakes" ];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue