feat: Add attic-client to x86_64-linux system
The attic-client has been added to the packages for the x86_64-linux system. This change enables interaction with the Attic distributed storage system, expanding the capabilities of this system setting.
This commit is contained in:
		
							parent
							
								
									97e7a73c94
								
							
						
					
					
						commit
						5a362acdd3
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1,5 +1,15 @@
 | 
			
		|||
{ pkgs, lib, config, ... }:
 | 
			
		||||
{
 | 
			
		||||
  services.postgresql = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    ensureDatabases = [ "attic" ];
 | 
			
		||||
    ensureUsers = [{ name = "atticd"; }];
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  systemd.services.postgresql.postStart = lib.mkAfter ''
 | 
			
		||||
    $PSQL -tAc 'ALTER DATABASE "attic" OWNER TO "atticd"'
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
  environment.systemPackages = with pkgs; [
 | 
			
		||||
    attic-client
 | 
			
		||||
  ];
 | 
			
		||||
| 
						 | 
				
			
			@ -10,6 +20,8 @@
 | 
			
		|||
    credentialsFile = "/etc/atticd.env";
 | 
			
		||||
 | 
			
		||||
    settings = {
 | 
			
		||||
      database.url = "postgresql:///attic?host=/run/postgresql";
 | 
			
		||||
 | 
			
		||||
      listen = "[::]:8080";
 | 
			
		||||
 | 
			
		||||
      # Data chunking
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue