446 current 1970-01-01 01:00:00 24.05.20241106.dba4149 6.6.52-rt43 *
This commit is contained in:
		| @@ -5,7 +5,7 @@ | ||||
| }: let | ||||
|   cfg = config.myConfig; | ||||
| in { | ||||
|   imports = [./bootloader.nix ./locale.nix ./greetd.nix ./rebuild.nix ./sops.nix ./sway.nix ./wifi.nix ./music.nix ./cups.nix ./gpu/amd.nix]; | ||||
|   imports = [./bootloader.nix ./locale.nix ./greetd.nix ./rebuild.nix ./sops.nix ./sway.nix ./wifi.nix ./music.nix ./cups.nix ./gpu/amd.nix ./touch.nix]; | ||||
|  | ||||
|   options.myConfig = { | ||||
|     enable = lib.mkEnableOption "my custom config"; | ||||
| @@ -26,5 +26,6 @@ in { | ||||
|  | ||||
|     sway.laptop = lib.mkIf cfg.laptop true; | ||||
|     wifi.enable = lib.mkIf cfg.laptop true; | ||||
|     touch.enable = lib.mkIf cfg.laptop true; | ||||
|   }; | ||||
| } | ||||
|   | ||||
							
								
								
									
										18
									
								
								modules/nixos/touch.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								modules/nixos/touch.nix
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| { | ||||
|   lib, | ||||
|   config, | ||||
|   ... | ||||
| }: let | ||||
|   cfg = config.myConfig.touch; | ||||
| in { | ||||
|   options.myConfig.touch = { | ||||
|     enable = lib.mkEnableOption "touch screen"; | ||||
|   }; | ||||
|  | ||||
|   config = lib.mkIf cfg.enable { | ||||
|     services = { | ||||
|       xserver.wacom.enable = true; | ||||
|       libinput.enable = true; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user