summaryrefslogtreecommitdiff
path: root/modules/auto-update.nix
blob: 996ff812acc6ab441a3a88cfda09340bf229a502 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{ config, lib, pkgs, ... }:
{
  system.autoUpgrade = {
    enable = true;
    dates = "04:40";
    flake =
      if config.networking.hostName == "dragon" then
        "git+file:///storage/projects/nixos-config.git"
      else
        "git+https://git.orbekk.com/nixos-config.git";
  };
}