2024-03-05 22:57:41 +01:00
|
|
|
{...}: {
|
2023-08-26 15:15:30 +02:00
|
|
|
# Automatically `nixos-rebuild switch` daily with the latest configuration
|
|
|
|
# from git. This overwrites any uncommitted changes in ~/nixos/, which is why
|
|
|
|
# it is only enabled on servers. Note that this requires updating flake.lock
|
2023-11-29 01:20:43 +01:00
|
|
|
# in the repository periodically (see Containerfile). Alternatively, at the
|
2023-08-26 15:15:30 +02:00
|
|
|
# cost of reproducability, add
|
|
|
|
# flags = [ "--recreate-lock-file" "--no-write-lock-file" ]
|
|
|
|
# to ignore the repository flake.lock and use the latest input versions.
|
|
|
|
system.autoUpgrade = {
|
|
|
|
enable = true;
|
|
|
|
flake = "git+https://git.caspervk.net/caspervk/nixos.git";
|
|
|
|
};
|
|
|
|
}
|