Add the seal post script into nix file itself.
Some comments on how to use Gitea. Switching mentions of users to alicemain
							parent
							
								
									3db497ce1a
								
							
						
					
					
						commit
						5f1ac39a0e
					
				| 
						 | 
				
			
			@ -2,6 +2,14 @@ let
 | 
			
		|||
  PROJECT_ROOT = builtins.toString ./.;
 | 
			
		||||
in
 | 
			
		||||
{
 | 
			
		||||
  nixpkgs.overlays = [
 | 
			
		||||
    (self: super: {
 | 
			
		||||
      newSealPost = pkgs.writeShellScriptBin "newSealPost.sh" (builtins.readFile ./cutesealfanpage.love/newSealPost.sh);
 | 
			
		||||
    })
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  environment.systemPackages = [ pkgs.newSealPost ];
 | 
			
		||||
 | 
			
		||||
  services.caddy = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    virtualHosts = {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -25,3 +25,17 @@
 | 
			
		|||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
  # README
 | 
			
		||||
 | 
			
		||||
  ## View users and use the command line
 | 
			
		||||
 | 
			
		||||
  Do something like this, preferably as the gitea user
 | 
			
		||||
 | 
			
		||||
  ```bash
 | 
			
		||||
  $ sudo su gitea
 | 
			
		||||
  $ /nix/store/5xwh7m7252m9ljvr3lyilcza1q699r2c-gitea-1.17.4/bin/gitea -c /var/lib/gitea/custom/conf/app.ini admin user list
 | 
			
		||||
  ```
 | 
			
		||||
*/
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -52,7 +52,7 @@
 | 
			
		|||
      auto-optimise-store = true;
 | 
			
		||||
 | 
			
		||||
      # Required by Cachix to be used as non-root user
 | 
			
		||||
      trusted-users = [ "root" "bill" ];
 | 
			
		||||
      trusted-users = [ "root" "alice" ];
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue