gammastep: extract config
This commit is contained in:
		
							parent
							
								
									8cae611cd5
								
							
						
					
					
						commit
						0a0b8f9e61
					
				
					 2 changed files with 21 additions and 4 deletions
				
			
		| 
						 | 
					@ -20,6 +20,7 @@ in
 | 
				
			||||||
    ./swayidle.nix
 | 
					    ./swayidle.nix
 | 
				
			||||||
    ./swaylock.nix
 | 
					    ./swaylock.nix
 | 
				
			||||||
    ./theme.nix
 | 
					    ./theme.nix
 | 
				
			||||||
 | 
					    ./gammastep.nix
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  options.my.sway.enable = lib.mkEnableOption { };
 | 
					  options.my.sway.enable = lib.mkEnableOption { };
 | 
				
			||||||
| 
						 | 
					@ -32,6 +33,7 @@ in
 | 
				
			||||||
    my.mpd.enable = true;
 | 
					    my.mpd.enable = true;
 | 
				
			||||||
    my.zathura.enable = true;
 | 
					    my.zathura.enable = true;
 | 
				
			||||||
    my.waybar.enable = true;
 | 
					    my.waybar.enable = true;
 | 
				
			||||||
 | 
					    my.gammastep.enable = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    wayland.windowManager.sway = {
 | 
					    wayland.windowManager.sway = {
 | 
				
			||||||
      enable = true;
 | 
					      enable = true;
 | 
				
			||||||
| 
						 | 
					@ -115,10 +117,6 @@ in
 | 
				
			||||||
        exec_always systemctl --user restart waybar.service
 | 
					        exec_always systemctl --user restart waybar.service
 | 
				
			||||||
      '';
 | 
					      '';
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    services.gammastep = {
 | 
					 | 
				
			||||||
      enable = true;
 | 
					 | 
				
			||||||
      provider = "geoclue2";
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    services.kdeconnect = {
 | 
					    services.kdeconnect = {
 | 
				
			||||||
      enable = true;
 | 
					      enable = true;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										19
									
								
								user/sway/gammastep.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								user/sway/gammastep.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,19 @@
 | 
				
			||||||
 | 
					{ config, lib, ... }:
 | 
				
			||||||
 | 
					let
 | 
				
			||||||
 | 
					  cfg = config.my.gammastep;
 | 
				
			||||||
 | 
					in
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  options.my.gammastep.enable = lib.mkEnableOption { };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  config = lib.mkIf cfg.enable {
 | 
				
			||||||
 | 
					    services.gammastep = {
 | 
				
			||||||
 | 
					      enable = true;
 | 
				
			||||||
 | 
					      dawnTime = "6:00-7:45";
 | 
				
			||||||
 | 
					      duskTime = "18:35-20:15";
 | 
				
			||||||
 | 
					      temperature = {
 | 
				
			||||||
 | 
					        day = 6500;
 | 
				
			||||||
 | 
					        night = 4500;
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue