Trying something new with service
							parent
							
								
									ae69018842
								
							
						
					
					
						commit
						2d9612bb03
					
				| 
						 | 
					@ -21,18 +21,26 @@ in
 | 
				
			||||||
    cutesealfanpage-hakyll-site = {
 | 
					    cutesealfanpage-hakyll-site = {
 | 
				
			||||||
      enable = true;
 | 
					      enable = true;
 | 
				
			||||||
      description = "The hakyll executable that rebuilds the site when a new blog post is created.";
 | 
					      description = "The hakyll executable that rebuilds the site when a new blog post is created.";
 | 
				
			||||||
      serviceConfig = {
 | 
					      script = ''
 | 
				
			||||||
        ExecStart = "cd /workspace/deployed-nixos-server-and-apps/nixos-apps/cutesealfanpage.love; ./hakyll-site";
 | 
					        cd /workspace/deployed-nixos-server-and-apps/nixos-apps/cutesealfanpage.love
 | 
				
			||||||
      };
 | 
					        nix run .#hakyll-site
 | 
				
			||||||
 | 
					      '';
 | 
				
			||||||
 | 
					      # serviceConfig = {
 | 
				
			||||||
 | 
					      #   ExecStart = "cd /workspace/deployed-nixos-server-and-apps/nixos-apps/cutesealfanpage.love; ./hakyll-site";
 | 
				
			||||||
 | 
					      # };
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    cutesealfanpage-generatePosts = {
 | 
					    cutesealfanpage-generatePosts = {
 | 
				
			||||||
      enable = true;
 | 
					      enable = true;
 | 
				
			||||||
      description = "The haskell script that creates the new post of the day.";
 | 
					      description = "The haskell script that creates the new post of the day.";
 | 
				
			||||||
      startAt = "08:12:42";
 | 
					      startAt = "08:12:42";
 | 
				
			||||||
      serviceConfig = {
 | 
					      script = ''
 | 
				
			||||||
        ExecStart = "cd /workspace/deployed-nixos-server-and-apps/nixos-apps/cutesealfanpage.love; ./generatePosts";
 | 
					        cd /workspace/deployed-nixos-server-and-apps/nixos-apps/cutesealfanpage.love
 | 
				
			||||||
      };
 | 
					        nix run .#generateSealPosts
 | 
				
			||||||
 | 
					      '';
 | 
				
			||||||
 | 
					      # serviceConfig = {
 | 
				
			||||||
 | 
					      #   ExecStart = "cd /workspace/deployed-nixos-server-and-apps/nixos-apps/cutesealfanpage.love; ./generatePosts";
 | 
				
			||||||
 | 
					      # };
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue