mirror of
				https://github.com/Stunkymonkey/nixos.git
				synced 2025-10-31 01:32:11 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			616 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			616 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { config, lib, ... }:
 | |
| let
 | |
|   cfg = config.my.profiles.sway-location;
 | |
| in
 | |
| {
 | |
|   options.my.profiles.sway-location = with lib; {
 | |
|     enable = mkEnableOption "sway-location profile";
 | |
|   };
 | |
| 
 | |
|   config = lib.mkIf cfg.enable {
 | |
|     location.provider = "geoclue2";
 | |
| 
 | |
|     services.geoclue2 = {
 | |
|       enable = true;
 | |
|       enableDemoAgent = true;
 | |
| 
 | |
|       appConfig."gammastep" = {
 | |
|         desktopID = "gammastep";
 | |
|         isAllowed = true;
 | |
|         isSystem = false;
 | |
|       };
 | |
|       appConfig."gammastep-indicator" = {
 | |
|         desktopID = "gammastep-indicator";
 | |
|         isAllowed = true;
 | |
|         isSystem = false;
 | |
|       };
 | |
|     };
 | |
|   };
 | |
| }
 | 
