tree-wide change. seperated config from 'real' modles.
This commit is contained in:
		
							parent
							
								
									3eee4e105d
								
							
						
					
					
						commit
						a0c1ad0beb
					
				
					 59 changed files with 377 additions and 424 deletions
				
			
		
							
								
								
									
										29
									
								
								configs/nixos/i3/lockscreen.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								configs/nixos/i3/lockscreen.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,29 @@
 | 
			
		|||
{
 | 
			
		||||
  config,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  lib,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  environment.systemPackages = with pkgs; [
 | 
			
		||||
    betterlockscreen
 | 
			
		||||
  ];
 | 
			
		||||
  home-manager.users.${config.host.user} = {
 | 
			
		||||
    config,
 | 
			
		||||
    osConfig,
 | 
			
		||||
    lib,
 | 
			
		||||
    ...
 | 
			
		||||
  }: {
 | 
			
		||||
    xsession.windowManager.i3.config = {
 | 
			
		||||
      keybindings = let
 | 
			
		||||
        mod = config.xsession.windowManager.i3.config.modifier;
 | 
			
		||||
      in {
 | 
			
		||||
        "${mod}+x" = ''
 | 
			
		||||
          exec --no-startup-id betterlockscreen --lock blur
 | 
			
		||||
        '';
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
    imports = [
 | 
			
		||||
      ../../home-manager/feh.nix
 | 
			
		||||
    ];
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue