- move bind scripts to standalone shell applications - split configuration into more modules - still more work to be done
		
			
				
	
	
		
			35 lines
		
	
	
	
		
			835 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
	
		
			835 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ lib, config, pkgs, inputs, ... }: 
 | 
						|
let
 | 
						|
  cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
 | 
						|
  inherit (import ./pkgs {inherit pkgs;}) hyprbrightness hyprvolume hyprkillsession;
 | 
						|
in
 | 
						|
{
 | 
						|
  imports = [
 | 
						|
    inputs.hyprland.homeManagerModules.default
 | 
						|
    ./settings
 | 
						|
  ];
 | 
						|
 | 
						|
  config = lib.mkIf cfg.enable {
 | 
						|
    xdg.portal = {
 | 
						|
      extraPortals = [ pkgs.inputs.hyprland.xdg-desktop-portal-hyprland ];
 | 
						|
      configPackages = [ pkgs.inputs.hyprland.hyprland ];
 | 
						|
    };
 | 
						|
 | 
						|
    home.packages = [
 | 
						|
      inputs.hyprwm-contrib.packages.${pkgs.system}.grimblast
 | 
						|
      pkgs.hyprshade
 | 
						|
      hyprvolume
 | 
						|
      hyprkillsession
 | 
						|
      hyprbrightness
 | 
						|
    ];
 | 
						|
    
 | 
						|
    wayland.windowManager.hyprland = {
 | 
						|
      enable = true;
 | 
						|
      xwayland.enable = true;
 | 
						|
      systemd = {
 | 
						|
        enable = true;
 | 
						|
        variables = ["--all"];
 | 
						|
      };
 | 
						|
    };
 | 
						|
  };
 | 
						|
}
 |