refactor: inputs/ --> {sys,home}/
This commit is contained in:
		
							parent
							
								
									8f22a24963
								
							
						
					
					
						commit
						f77c627980
					
				
					 225 changed files with 77 additions and 88 deletions
				
			
		| 
						 | 
				
			
			@ -1,32 +0,0 @@
 | 
			
		|||
{ lib, config, pkgs, ... }:
 | 
			
		||||
 | 
			
		||||
let
 | 
			
		||||
  inherit (lib) mkIf;
 | 
			
		||||
  inherit (builtins) elem;
 | 
			
		||||
  isx86Linux = pkgs: with pkgs.stdenv; hostPlatform.isLinux && hostPlatform.isx86;
 | 
			
		||||
  features = config.systemModules.host.hardware.features;
 | 
			
		||||
in
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
  config = mkIf (elem "video" features) {
 | 
			
		||||
    hardware = {
 | 
			
		||||
      opengl = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
        driSupport = true;
 | 
			
		||||
        driSupport32Bit = isx86Linux pkgs;
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
    xdg.portal = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      xdgOpenUsePortal = true;
 | 
			
		||||
      extraPortals = with pkgs; [
 | 
			
		||||
        xdg-desktop-portal-hyprland
 | 
			
		||||
        xdg-desktop-portal-gtk
 | 
			
		||||
      ];
 | 
			
		||||
      config = {
 | 
			
		||||
        common.default = ["gtk"];
 | 
			
		||||
        hyprland.default = ["gtk" "hyprland"];
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue