From 0212bdf4f8d2d6f9ef57c072b0e3aeff74014763 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sat, 23 Jul 2022 19:08:32 +0200 Subject: [PATCH] support autoupgrade with flakes --- nixos/modules/nix.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/modules/nix.nix b/nixos/modules/nix.nix index 43d8a5d..081eb03 100644 --- a/nixos/modules/nix.nix +++ b/nixos/modules/nix.nix @@ -3,6 +3,12 @@ nix.extraOptions = '' experimental-features = nix-command flakes ''; + # support auto upgrade with flakes + system.autoUpgrade.flags = [ + "--update-input" + "nixpkgs" + "--commit-lock-file" + ]; environment.systemPackages = with pkgs; [ nix-prefetch nix-update