Let's use the standard auto-update instead
This commit is contained in:
		
							parent
							
								
									1878f7b449
								
							
						
					
					
						commit
						3bfa44bdea
					
				
					 3 changed files with 5 additions and 37 deletions
				
			
		| 
						 | 
				
			
			@ -98,20 +98,11 @@
 | 
			
		|||
  ];
 | 
			
		||||
 | 
			
		||||
  # Create an auto-update systemd service that runs every day
 | 
			
		||||
  systemd.services = {
 | 
			
		||||
    updater = {
 | 
			
		||||
      path = [
 | 
			
		||||
        pkgs.rebuild
 | 
			
		||||
        pkgs.nix
 | 
			
		||||
        pkgs.bash
 | 
			
		||||
        pkgs.git
 | 
			
		||||
        pkgs.gnutar
 | 
			
		||||
        pkgs.xz.bin
 | 
			
		||||
        config.nix.package.out
 | 
			
		||||
      ];
 | 
			
		||||
      script = "bash /run/current-system/sw/bin/systemd-rebuild";
 | 
			
		||||
      startAt = "daily";
 | 
			
		||||
    };
 | 
			
		||||
  system.autoUpgrade = {
 | 
			
		||||
    flake = "git+https://git.lillianviolet.dev/Lillian-Violet/NixOS-Config.git";
 | 
			
		||||
    dates = "daily";
 | 
			
		||||
    enable = true;
 | 
			
		||||
    system.autoUpgrade.dates = "Sat *-*-1..7,15..21 01:00:00";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  # Enable networking
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue