seperated out some options into generic graphical config.
This commit is contained in:
		
							parent
							
								
									d3e13cf0f0
								
							
						
					
					
						commit
						084e4ca421
					
				
					 3 changed files with 38 additions and 8 deletions
				
			
		
							
								
								
									
										14
									
								
								configs/nixos/graphical.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								configs/nixos/graphical.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,14 @@
 | 
			
		|||
{
 | 
			
		||||
  config,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  lib,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  console.useXkbConfig = true;
 | 
			
		||||
  fonts.fontDir.enable = true;
 | 
			
		||||
  fonts.enableDefaultPackages = true;
 | 
			
		||||
  services.xserver.xkb.options = "ctrl:nocaps,compose:rctrl";
 | 
			
		||||
  services.displayManager.ly = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -15,15 +15,7 @@
 | 
			
		|||
  services.xserver = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    windowManager.i3.enable = true;
 | 
			
		||||
    displayManager.lightdm = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      greeters.gtk.enable = false;
 | 
			
		||||
      greeter.enable = false;
 | 
			
		||||
    };
 | 
			
		||||
    xkb.options = "ctrl:nocaps,compose:rctrl";
 | 
			
		||||
  };
 | 
			
		||||
  fonts.fontDir.enable = true;
 | 
			
		||||
  fonts.enableDefaultPackages = true;
 | 
			
		||||
  home-manager.users.${config.host.details.user} = {config, ...}: {
 | 
			
		||||
    home.packages = with pkgs; [
 | 
			
		||||
      maim
 | 
			
		||||
| 
						 | 
				
			
			@ -247,5 +239,6 @@
 | 
			
		|||
    ../sound.nix
 | 
			
		||||
    ./i3status-rust.nix
 | 
			
		||||
    ./lockscreen.nix
 | 
			
		||||
    ../graphical.nix
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										23
									
								
								configs/nixos/keyd.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								configs/nixos/keyd.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,23 @@
 | 
			
		|||
{
 | 
			
		||||
  config,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  lib,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  services.keyd = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    keyboards.default = {
 | 
			
		||||
      ids = ["*"];
 | 
			
		||||
      settings = {
 | 
			
		||||
        capslock = "overload(control, esc)";
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
  environment.etc."libinput/local-overrides.quirks".text = ''
 | 
			
		||||
    [Serial Keyboards]
 | 
			
		||||
 | 
			
		||||
    MatchUdevType=keyboard
 | 
			
		||||
    MatchName=keyd*keyboard
 | 
			
		||||
    AttrKeyboardIntegration=internal
 | 
			
		||||
  '';
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue