summaryrefslogtreecommitdiff
path: root/hosts/ahmed
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/ahmed')
-rw-r--r--hosts/ahmed/configuration.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/hosts/ahmed/configuration.nix b/hosts/ahmed/configuration.nix
index a07cd87..541a109 100644
--- a/hosts/ahmed/configuration.nix
+++ b/hosts/ahmed/configuration.nix
@@ -3,6 +3,7 @@
{
config,
pkgs,
+ flakeInputs,
...
}: {
imports = [
@@ -83,6 +84,21 @@
# Listen for HTTP connections.
networking.firewall.allowedTCPPorts = [80 443];
+ # Automatic upgrades
+ system.autoUpgrade = {
+ enable = true;
+ flake = flakeInputs.self.outPath;
+ flags = [
+ "--update-input"
+ "nixpkgs"
+ "-L" # print build logs
+ ];
+ dates = "02:00";
+ randomizedDelaySec = "45min";
+ allowReboot = true;
+ };
+
+
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It's perfectly fine and recommended to leave