I hope this works?
This commit is contained in:
		
							parent
							
								
									546b38547d
								
							
						
					
					
						commit
						25ddebec3c
					
				
					 1 changed files with 5 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -97,17 +97,16 @@
 | 
			
		|||
    youtube-dl
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  # Create an auto-update systemd service that runs every Saturday
 | 
			
		||||
  # Create an auto-update systemd service that runs every day
 | 
			
		||||
  systemd.services = {
 | 
			
		||||
    updater = {
 | 
			
		||||
      path = [
 | 
			
		||||
        pkgs.rebuild
 | 
			
		||||
        pkgs.nix
 | 
			
		||||
        pkgs.bash
 | 
			
		||||
      ];
 | 
			
		||||
      script = "rebuild";
 | 
			
		||||
      serviceConfig = {
 | 
			
		||||
        User = config.users.users.root;
 | 
			
		||||
      };
 | 
			
		||||
      startAt = "weekly";
 | 
			
		||||
      script = "bash /run/current-system/sw/bin/rebuild";
 | 
			
		||||
      startAt = "daily";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue