From 4b5c7e5c689e890b9b9e262ea3f70359f292c448 Mon Sep 17 00:00:00 2001 From: Nikolaos Karaolidis Date: Thu, 13 Jun 2024 12:34:49 +0300 Subject: [PATCH] Add automatic system upgrades Signed-off-by: Nikolaos Karaolidis --- common/default.nix | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/common/default.nix b/common/default.nix index 38c8885..0f10d3f 100644 --- a/common/default.nix +++ b/common/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ inputs, lib, pkgs, ... }: { imports = [ @@ -58,7 +58,7 @@ programs = { nix-ld = { enable = true; - libraries = with pkgs; [ ]; + libraries = [ ]; }; }; @@ -67,5 +67,19 @@ ''; nix.settings.experimental-features = [ "nix-command" "flakes" ]; - system.stateVersion = "24.05"; + + system = { + autoUpgrade = { + enable = true; + flake = inputs.self.outPath; + flags = [ + "--update-input" + "nixpkgs" + "-L" + ]; + dates = "02:00"; + }; + + stateVersion = "24.05"; + }; }