system: add nix-ld
This commit is contained in:
		
							parent
							
								
									7d15904e7c
								
							
						
					
					
						commit
						c51d9ee3f1
					
				
					 4 changed files with 24 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -42,6 +42,7 @@ in
 | 
			
		|||
  };
 | 
			
		||||
 | 
			
		||||
  my.gaming.enable = true;
 | 
			
		||||
  my.nix-ld.enable = true;
 | 
			
		||||
 | 
			
		||||
  boot.extraModulePackages = with config.boot.kernelPackages; [ zenpower ];
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -17,6 +17,7 @@
 | 
			
		|||
    ./locale.nix
 | 
			
		||||
    ./users.nix
 | 
			
		||||
    ./containers.nix
 | 
			
		||||
    ./nix-ld.nix
 | 
			
		||||
    ./network.nix
 | 
			
		||||
    ../settings
 | 
			
		||||
  ];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										21
									
								
								system/nix-ld.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								system/nix-ld.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,21 @@
 | 
			
		|||
{
 | 
			
		||||
  pkgs,
 | 
			
		||||
  lib,
 | 
			
		||||
  config,
 | 
			
		||||
  ...
 | 
			
		||||
}:
 | 
			
		||||
{
 | 
			
		||||
  options.my.nix-ld.enable = lib.mkEnableOption { };
 | 
			
		||||
 | 
			
		||||
  config = lib.mkIf (config.my.nix-ld.enable) {
 | 
			
		||||
    programs.nix-ld = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      libraries =
 | 
			
		||||
        with pkgs;
 | 
			
		||||
        # run appimages + linux games natively
 | 
			
		||||
        [ fuse ]
 | 
			
		||||
        ++ (appimageTools.defaultFhsEnvArgs.multiPkgs pkgs)
 | 
			
		||||
        ++ (appimageTools.defaultFhsEnvArgs.targetPkgs pkgs);
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -1,6 +1,7 @@
 | 
			
		|||
{ lib, ... }:
 | 
			
		||||
{
 | 
			
		||||
  options.my = {
 | 
			
		||||
    nix-ld.enable = lib.mkEnableOption { };
 | 
			
		||||
    android.enable = lib.mkEnableOption { };
 | 
			
		||||
    media-packages.enable = lib.mkEnableOption { };
 | 
			
		||||
    containers.enable = lib.mkEnableOption { };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue