support autoupgrade with flakes

This commit is contained in:
Felix Buehler 2022-07-23 19:08:32 +02:00
parent c1a8374e1f
commit 0212bdf4f8

View file

@ -3,6 +3,12 @@
nix.extraOptions = '' nix.extraOptions = ''
experimental-features = nix-command flakes experimental-features = nix-command flakes
''; '';
# support auto upgrade with flakes
system.autoUpgrade.flags = [
"--update-input"
"nixpkgs"
"--commit-lock-file"
];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
nix-prefetch nix-prefetch
nix-update nix-update