autostart firefox
This commit is contained in:
		
							parent
							
								
									1af3503c5d
								
							
						
					
					
						commit
						31c01e92aa
					
				
					 1 changed files with 15 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -31,6 +31,21 @@ in {
 | 
			
		|||
        };
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
    systemd.user.services = {
 | 
			
		||||
      firefox = {
 | 
			
		||||
        Unit = {
 | 
			
		||||
          Description = "Firefox Web client";
 | 
			
		||||
          PartOf = [ "graphical-session.target" ];
 | 
			
		||||
          After = [ "graphical-session.target" ];
 | 
			
		||||
        };
 | 
			
		||||
        Service = {
 | 
			
		||||
          ExecStartPre = "/usr/bin/env sleep 10s";
 | 
			
		||||
          ExecStart = "${pkgs.firefox}/bin/firefox";
 | 
			
		||||
          Restart = "on-failure";
 | 
			
		||||
        };
 | 
			
		||||
        Install = { WantedBy = [ "sway-session.target" ]; };
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
    home.sessionVariables = { MOZ_ENABLE_WAYLAND = "1"; };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue